Mysql Setup


  1. The keyword used to create a database is __________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The statement ‘CREATE DATABASE database_name;’ is used to create a database with the name ‘database_name’. A database qualifier should be used to specify the full name of the database.


  1. It is required to have an access privilege for a database before selecting it with ‘USE’.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    In order to select a database as the default database for the MySQL server using the ‘USE’ statement, some access privilege for the database needs to be granted or attained.



  1. The statement used to find out which character sets are available is ______________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    It is simple to determine the character sets and collations that are available in MySQL. ‘SHOW CHARACTER SET’ shows the character sets while ‘SHOW COLLATION’ shows the collations.


  1. The collations this statement lists are ______________.
    SHOW COLLATION LIKE 'utf8%'











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The character set ‘utf8’ is used for the Unicode character set 8. The ‘LIKE’ keyword does the job of narrowing the search space to refer to only those names that begin with ‘utf8’.



  1. The error log file has a suffix ______________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    In Windows, by default, the error log is located in the ‘C:\Program Files\MySQL\MySQL Server 5.7\data’ directory. It is the file with a suffix of .err, or may be specified by passing in the ‘–log-error’ option.