MySQL Database Operations
- What is the variable that is a handle to a database object?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
The variable named ‘$dbh’ is a handle to an open file. ‘$h’ is a generic handle and the meaning depends on context. ‘$dbh’ is a handle to a database object. ‘$sth’ is a handle to a query object.
- Which option suppresses output unless there are errors in the table?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
In MySQL, the ‘–silent’ option suppresses the output unless there are errors in the tables. The ‘cron’ jobs typically generate a mail message if a job produces any output at all.
- Under which option are index changes not flushed until tables close?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
In MySQL, the MyISAM recovery is important if the server is run with the ‘–delay-key-write’ option. Under this condition, the index changes are not flushed until the tables close.
- How many of these can replace ‘level’ in ‘–myisam-recover = level’?
BACKUP, FORCE, QUICK
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
To enable MyISAM table recovery, the server is started with the ‘–myisam-recover = level’ option. The value of level is a comma-separated list of the following: BACKUP, FORCE, QUICK or DEFAULT.
- What attempts auto recovery based on the contents of its serial log?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
When the Falcon storage engine is enabled, it attempts the auto recovery based on the contents of its serial log. If the InnoDB storage engine is enabled, it checks for a variety of problems automatically.