Mysql miscellaneous


  1. The statement that views status variables by aggregating the values over all connections is _____________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The MySQL server maintains various status variables that provide information about its operations. These variables and their values can be viewed by using the SHOW [GLOBAL | SESSION] STATUS statement.


  1. What returns a string containing an error message?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The API call named ‘mysql_error()’ returns a string containing an error message. ‘mysql_close()’ does not return any value at all. ‘mysql_errno()’ returns a MySQL-specific numeric code.



  1. How many among 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.


  1. How many among the following use NULL to indicate failure?
    mysql_init(), mysql_real_connect()











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    Both of the client library routines named ‘mysql_init()’ and ‘mysql_real_connect()’ return a pointer to the connection handler in order to indicate success and NULL to indicate failure.



  1. An embedded application includes the server side only.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    In MySQL, an embedded application includes both a client side and a server side, in order that it can process one group of options for the client, and another group for the server.