MySQL Database Operations


  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. 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. 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. In which file are the statements entered in ‘mysql’ saved?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    Statements entered in ‘mysql’ are stored in the file named ‘.mysql_history’. This file is located in the home directory itself. The SQL statements can be directly pasted into this file.



  1. Mysql cannot be used to execute script files.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    Mysql is capable of reading input from a file in batch mode. This is also known as the non-interactive mode. A lot of typing and time can be saved when commands are stored in a file and executed from a file.