MySQL Access Control and Security


  1. How is a stored procedure invoked?











  1. 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.


  1. Which table lists the accounts and the databases for which the privileges are provided?











  1. 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).



  1. The table that lists the column level privileges is _____________











  1. 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.


  1. Which of these grant table scope columns is case insensitive?











  1. 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.



  1. What causes a replication master server to delete all the binary log files even if they are still in use?











  1. 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.