Mysql Setup


  1. For REVOKE statements, the server automatically rereads the grant tables.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    For the ‘REVOKE’ and ‘DROP USER’ statements, the server automatically re-reads the grant tables and no FLUSH PRIVILEGES statements are needed. Hence the grant tables are re-read.


  1. Anonymous accounts have user name ______________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Anonymous accounts have user name left blank. The main benefit of removing the anonymous user accounts is it significantly simplifies the task of setting up non-anonymous accounts.



  1. Which script initializes the data directory during installation?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The data directory is initialized during the installation by ‘mysql_install_db’. If MySQL is installed on Linux from RPM packages then ‘mysql_install_db’ is run automatically.


  1. The superuser account of the grant tables in the mysql database is called ______________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The root accounts are superuser accounts intended for administrative purposes. The root accounts have the privileges and to delete all the databases and shutting down the server.



  1. Suppose you want to select a database named ‘sampledb’ as the default database. Which of the following commands do you use?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    ‘USE sampledb’ selects sampledb as the default database. Initially, ‘SELECT DATABASE();’ command displays ‘NULL’, since no database is selected by default. The other two are not valid commands.