Mysql Setup
- For REVOKE statements, the server automatically rereads the grant tables.
-
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.
- Anonymous accounts have user name ______________.
-
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.
- Which script initializes the data directory during installation?
-
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.
- The superuser account of the grant tables in the mysql database is called ______________.
-
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.
- Suppose you want to select a database named ‘sampledb’ as the default database. Which of the following commands do you use?
-
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.