开发者

Priority of my.ini location

开发者 https://www.devze.com 2023-02-14 01:09 出处:网络
I need the config file that mysqld.exe is using. Is this the right order? a) --default开发者_开发问答s-file=\"c:\\path\\to\\my.ini\"

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消