MySQL Database Operations
- The most restrictive among the following is ______________.
mysql_query(), mysql_real_query()
-
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.
- The option that specifies the data directory location at server startup is ______________.
-
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.
- Which data directory subdirectory corresponds to the nbdinfo database?
-
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.
- Encrypted connections can be established using ______________.
-
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.
- Which of 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.