Mysql miscellaneous
- The statement that views status variables by aggregating the values over all connections is _____________.
-
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.
- What returns a string containing an error message?
-
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.
- How many among the following does not return a value?
mysql_close(), mysql_init, mysql_real_connect
-
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.
- How many among the following use NULL to indicate failure?
mysql_init(), mysql_real_connect()
-
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.
- An embedded application includes the server side only.
-
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.