MySQL Database Operations


  1. Which of these is preferred when stored procedures are not being used?
    CLIENT_MULTI_STATEMENTS, mysql_set_server_option()











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    If the program does not use stored procedures anyone is suitable. If the program uses stored procedures and invokes a ‘CALL’ statement that returns a result set, the first method is better.


  1. The data directory subdirectory that corresponds to the nbdinfo database is ______________.











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



  1. What is the maximum number of characters allowed for a database name to have?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    MySQL allows the database names and the table names to be maximum 64 characters long. The length of these names is also bound by the length allowed by the operating system on the machine.


  1. In the database directory of the database each view and trigger object is associated with how many files?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Each view and trigger object is associated with one file in the database directory of the database containing that object. A view consists of an .frm file that contains the view definition.



  1. Each database has a data directory located under database directory.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    In MySQL, each database has a database directory that is located under the data directory. The tables, views and triggers within a database correspond to files in the database directory.