Explore topic-wise MCQs in Mysql.

This section includes 4 Mcqs, each offering curated multiple-choice questions to sharpen your Mysql knowledge and support exam preparation. Choose a topic below to get started.

1.

To execute the contents of a query file exec.sql by feeding it to mysql, which command is used?

A. mysql exec.sql
B. mysql exec
C. mysql exec.sql > sampdb
D. mysql sampdb < exec.sql
E. None of these
Answer» E. None of these
2.

In UNIX, the name of the option file is __________.

A. .my.ini
B. .my.opt
C. .my.cnf
D. .my.opc
E. None of these
Answer» D. .my.opc
3.

The clause that enables mapping a short command to a long command is __________.

A. alias
B. label
C. direct
D. map
E. None of these
Answer» B. label
4.

On UNIX, statements entered in MySQL are saved in which file?

A. .queries
B. .mysql_queries
C. .history
D. .mysql_history
E. None of these
Answer» E. None of these