MySQL Database Operations
- What is the special database that always exists after setting up MySQL in a computer?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
After installation of MySQL, ‘information_schema’ is the special database that always exists. ‘mysql’ can be seen depending on access rights. It holds the grant tables. ‘sampdb’ and ‘readme_db’ do not exist by default.
- When relocating an individual table, the table to be relocated should be ______________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
The relocation of an individual table is supported only under certain limited circumstances. When relocating an individual table, the table to be relocated should be a MyISAM table.
- Before relocation of database, the server should be stopped if running.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
The server always looks for the database directories in the data directory. The only way to relocate a database is by the symlink method. The server should be stopped if running.
- The most restrictive among the following is ______________.
mysql_query(), mysql_real_query()
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
The statement-issuing function other than ‘mysql_real_query()’ is ‘mysql_query()’. It is more restrictive in what it allows in the statement string although it is often easier to use.
- The option that specifies the data directory location at server startup is ______________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
At the server startup the data directory location is specified by using a ‘–datadir=dir_name’ option. It is helpful for naming a location other than the compiled in default.