查看MySQL配置文件路径及相关配置

 

[root@DB ~]# /usr/local/mysql/bin/mysqld --verbose --help |grep -A 1 'Default options'
Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf /usr/local/mysql/etc/my.cnf ~/.my.cnf 
#服务器首先会读取/etc/my.cnf文件,如果发现该文件不存在,再依次尝试从后面的几个路径进行读取

 

posted @ 2016-06-13 18:19  bass  阅读(1417)  评论(0编辑  收藏  举报