Home >Database >Mysql Tutorial >MySQL配置文件读取顺序_MySQL

MySQL配置文件读取顺序_MySQL

WBOY
WBOYOriginal
2016-06-01 13:10:34947browse

mysql的配置文件读取顺序:

/etc/my.cnf
/etc/mysql/my.cnf
user-home-dir/my.cnf
$MYSQL_HOME/my.cnf

 

参考http://blog.lixiphp.com/find-mysql-configuration-file/#axzz303YbuFx5

 

Windows:Windows 的配置文件为 my.ini,一般在 MySQL 的安装目录下或者 c:/Windows 下。

Linux:Linux 的配置文件为 my.cnf ,一般在 /etc 下。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn