1Z0-873 · Question #83
In which of the following files must the base directory be specified if MySQL is not installed in the default directory for the platform?
The correct answer is C. my.cnf D. my.ini. If you install MySQL on Windows, the server assumes by default that the installation directory is C:\mysql and the data directory is named data in the installation directory. If you install MySQL somewhere else, such as E:\mysql, you must tell the server that location with a…
Question
In which of the following files must the base directory be specified if MySQL is not installed in the default directory for the platform?
Options
- Aconfig.cnf
- Bconfig.ini
- Cmy.cnf
- Dmy.ini
- Ebasedir.cnf
- Fbasedir.ini
How the community answered
(25 responses)- A4% (1)
- B16% (4)
- C72% (18)
- E8% (2)
Explanation
If you install MySQL on Windows, the server assumes by default that the installation directory is C:\mysql and the data directory is named data in the installation directory. If you install MySQL somewhere else, such as E:\mysql, you must tell the server that location with a --basedir option. Options in option files are given without the leading dashes, so to indicate the installation directory, specify the option as follows: basedir=E:/mysql
Topics
Community Discussion
No community discussion yet for this question.