简体   繁体   English

my.ini位置的优先级

[英]Priority of my.ini location

I need the config file that mysqld.exe is using. 我需要mysqld.exe使用的配置文件。 Is this the right order? 这是正确的顺序吗?

a) --defaults-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 根据MySQL文档 ,配置文件的优先顺序为

 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. 如果存在,则按从上到下的顺序加载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM