Mysql miscellaneous


  1. When building from source, the embedded server library is enabled by what?











  1. 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.


  1. What is the embedded server library containing the MySQL server linkable into applications?











  1. 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.



  1. The string function that returns the index of the first occurrence of substring is _____________.











  1. 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.


  1. The synonym for last_insert_id session variable is _____________.











  1. 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()’.



  1. Which variable when set to 1 would enable foreign key checking for InnoDB tables?











  1. 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.