首页 > 技术文章 > mysql 如何查看my.cnf的 位置

kaye0110 2015-12-21 11:27 原文

[root@db2 libexec]# ./mysqld --verbose --help | grep -A 1 'Default options'
Default options are read from the following files in the given order:
/etc/my.cnf ~/.my.cnf /usr/local/service/mysql3306/etc/my.cnf[@more@]

推荐阅读