Mysql miscellaneous
- When building from source, the embedded server library is enabled by what?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
While building from the source, the embedded server library is enabled by using the option ‘–with-embedded-server’ while running ‘configure’. This applies equally to MySQL 5.0 and 5.1.
- What is the embedded server library containing the MySQL server linkable into applications?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
MySQL includes an embedded server library, libmysqld, containing the MySQL server in a way that can be linked into applications. This enables the production of MySQL-based standalone applications.
- The string function that returns the index of the first occurrence of substring is _____________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
The string funtion ‘INSTR()’ is used to return the index of the first occurrence of the substring. The function ‘INSERT()’ is used to insert a substring at the specified position up to the specified number of characters.
- The synonym for last_insert_id session variable is _____________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
The session only system variable ‘identity’ is a synonym for the ‘last_insert_id’ session variable. Setting ‘last_insert_id’ specifies the value to be returned by the function ‘LAST_INSERT_ID()’.
- Which variable when set to 1 would enable foreign key checking for InnoDB tables?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Setting the variable ‘foreign_key_checks’ to 0 or 1 disables or enables the foreign key checking for InnoDB tables. The default is to perform checking. Disabling key checks can also be helpful.