MySQL Database Operations
-  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.
 
-  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.
 
-  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.
 
-  In which file are the statements entered in ‘mysql’ saved?
 
- 
                        
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Statements entered in ‘mysql’ are stored in the file named ‘.mysql_history’. This file is located in the home directory itself. The SQL statements can be directly pasted into this file.
 
-  Mysql cannot be used to execute script files.
 
- 
                        
View Hint View Answer Discuss in Forum
NA
Correct Option: B
Mysql is capable of reading input from a file in batch mode. This is also known as the non-interactive mode. A lot of typing and time can be saved when commands are stored in a file and executed from a file.