MySQL Database Operations


  1. What is the variable that is a handle to a database object?











  1. 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.


  1. Which option suppresses output unless there are errors in the table?











  1. 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.



  1. Under which option are index changes not flushed until tables close?











  1. 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.


  1. How many of these can replace ‘level’ in ‘–myisam-recover = level’?
    BACKUP, FORCE, QUICK











  1. 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.



  1. What attempts auto recovery based on the contents of its serial log?











  1. 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.