Mysql Setup


  1. Which file is created by the server to store the database attributes?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Whenever a database is created in MySQL, the MySQL server creates a directory with the same name as the database. It creates the file db.opt to store the attributes.


  1. What is the default storage engine?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    MySQL comes with multiple storage engines. The default storage engine used is ‘MyISAM’. ‘EXAMPLE’ is the stub storage engine, NDB is the storage engine for MySQL Cluster.



  1. The name of the format file for a table named my_tbl is __________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Every time a table is created in MySQL, it creates a disk file containing the format of the table. It has two components, namely, base name (here, ‘my_tbl’) and an extension (here, ‘frm’).


  1. In the CREATE TABLE statement the engine name specified is case insensitive.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    Suppose a table is created using the following statement: ‘CREATE TABLE my_tbl (…..) ENGINE = InnoDB;’. The engine name ‘InnoDB’ used is always case insensitive.



  1. What are CROSS JOIN and JOIN are similar to?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The joins ‘CROSS JOIN’ and ‘JOIN’ types are exactly similar to the ‘INNER JOIN’. The statements containing ‘INNER JOIN’ can replace it with ‘CROSS JOIN’ or ‘JOIN’ to get exactly the same result.