MySQL Access Control and Security
- How is a stored procedure invoked?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
In MySQL, a stored procedure is invoked using the CALL statement. A stored procedure does not have a return value but can modify its parameters. It also returns some result sets.
- Which table lists the accounts and the databases for which the privileges are provided?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
The ‘db’ table lists which accounts have privileges for which databases. If a privilege is granted here, it applies to all objects in a database (tables, stored routines and so on).
- The table that lists the column level privileges is _____________
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
The ‘columns_priv’ table lists the column-level privileges. A privilege that is supplied here applies to a particular column. The ‘db’ table lists which accounts have privileges for which databases.
- Which of these grant table scope columns is case insensitive?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
‘Db’ and ‘Table_name’ values are always treated as case sensitive even though treatment of database and table names in SQL statements depends on the filesystem case sensitivity of the host.
- What causes a replication master server to delete all the binary log files even if they are still in use?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
‘RESET MASTER LOGS’ causes a replication master server to delete all binary log files even if they are in use which removes the information necessary to maintain the replication integrity.