1Z0-873 · Question #61
Which of following list the default order in which option files are read on UNIX?
The correct answer is B. /etc/my.cnf, $MYSQL_HOME/my.cnf, and ~/.my.cnf. On Unix, the search order includes two general option files, /etc/my.cnf and $MYSQL_HOME/my.cnf. The second file is used only if the MYSQL_HOME environment variable is set. Typically, you set it to the MySQL installation directory. (The mysqld_safe script attempts to set…
Question
Which of following list the default order in which option files are read on UNIX?
Options
- A~/.my.cnf, $MYSQL_HOME/my.cnf, and /etc/my.cnf
- B/etc/my.cnf, $MYSQL_HOME/my.cnf, and ~/.my.cnf
- C$MYSQL_HOME/my.cnf, /etc/my.cnf, and ~/.my.cnf
- D~/.my.cnf, /etc/my.cnf, and $MYSQL_HOME/my.cnf
- E/etc/my.cnf, ~/.my.cnf, and $MYSQL_HOME/my.cnf
How the community answered
(31 responses)- A3% (1)
- B84% (26)
- C10% (3)
- E3% (1)
Explanation
On Unix, the search order includes two general option files, /etc/my.cnf and $MYSQL_HOME/my.cnf. The second file is used only if the MYSQL_HOME environment variable is set. Typically, you set it to the MySQL installation directory. (The mysqld_safe script attempts to set MYSQL_HOME if it is not set before starting the server.) The Unix option file search order also includes ~/.my.cnf, that is, the .my.cnf file located in the home directory of the person running the program.
Topics
Community Discussion
No community discussion yet for this question.