MySQL Database Operations


  1. The logging option to enable binary log index file is ______________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The ‘–log-bin-index’ is the logging option that enables the binary log index file. ‘–log-error’ enables the error log file. Similarly, –log enables the general log file.


  1. The default value in seconds in the system variable ‘long_query_time’ is ______________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The server maintains a ‘long_query_time’ system variable that defines slow queries (10 seconds by default). If a query takes more than these seconds of real time it is considered slow.



  1. The log that identifies statements that may be in need of being rewritten for better performance is ______________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    The purpose of the slow-query log is to help the identification of statements that may be in need of being rewritten for better performance. This helps in query optimizations.


  1. The log that contains a record of server startups and shutdowns and the messages about exceptional conditions is ______________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The error log contains a record of server startups and shutdowns and the messages about problems or exceptional conditions. If the server fails to start this log provides the help.



  1. When relocating an individual table, the table to be relocated should be ______________.











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