MySQL Database Operations


  1. The most restrictive among the following is ______________.
    mysql_query(), mysql_real_query()











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The statement-issuing function other than ‘mysql_real_query()’ is ‘mysql_query()’. It is more restrictive in what it allows in the statement string although it is often easier to use.


  1. The option that specifies the data directory location at server startup is ______________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    At the server startup the data directory location is specified by using a ‘–datadir=dir_name’ option. It is helpful for naming a location other than the compiled in default.



  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. Which of the following does not return a value?
    mysql_close(), mysql_init, mysql_real_connect











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    It is not necessary that every Application Programming Interface call would return a value. For example, the client routine named ‘mysql_close()’ returns void, that is, it does not return a value.