MySQL Database Operations


  1. The datadir variable value can be seen using ______________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    The data directory location is checked by the ‘datadir’ variable. It can be obtained using a ‘SHOW VARIABLES’ statement or a ‘mysqladmin’ variables command, like: SHOW VARIABLES LIKE ‘datadir’.


  1. Which data directory subdirectory provides the information used to inspect the internal execution of the server at runtime.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The ‘performance_schema’ directory corresponds to the Performance Schema. It provides information used to inspect the internal execution of the server at runtime. The ‘sys’ directory maps to ‘nbdinfo’.



  1. Which data directory subdirectory corresponds to the nbdinfo database?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    The sys directory corresponds to the sys schema. It provides a set of objects to interpret Performance Schema information. The ‘performance_schema’ directory corresponds to the Performance Schema.


  1. Encrypted connections can be established using ______________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    For the ‘exec_stmt_ssl’ to work properly, MySQL must have been built with SSL support, and the server must be started with the proper options that identify its certificate and key files.



  1. mysql_next_result() does not return.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    The function ‘mysql_next_result()’ returns a status and initiates retrieval of the next set if more results are available. The status is zero if more results are available and -1 if not.