MySQL Database Operations


  1. What is the special database that always exists after setting up MySQL in a computer?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    After installation of MySQL, ‘information_schema’ is the special database that always exists. ‘mysql’ can be seen depending on access rights. It holds the grant tables. ‘sampdb’ and ‘readme_db’ do not exist by default.


  1. When relocating an individual table, the table to be relocated should be ______________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The relocation of an individual table is supported only under certain limited circumstances. When relocating an individual table, the table to be relocated should be a MyISAM table.



  1. Before relocation of database, the server should be stopped if running.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    The server always looks for the database directories in the data directory. The only way to relocate a database is by the symlink method. The server should be stopped if running.


  1. The most restrictive among the following is ______________.
    mysql_query(), mysql_real_query()











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



  1. The option that specifies the data directory location at server startup is ______________.











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