Priority of my.ini location
I need the config file that mysqld.exe is using. Is this the right order?
a) --default开发者_开发问答s-file="c:\path\to\my.ini"
b) <programdir>\..\my.ini
c) %systemroot%\my.ini
And are there any more?
According to the MySQL documentation, the order of precedence for configuration files is
WINDIR\my.ini, WINDIR\my.cnf C:\my.ini, C:\my.cnf INSTALLDIR\my.ini, INSTALLDIR\my.cnf --defaults-extra-file=path
Loaded in order from top to bottom, if present.
精彩评论