mysql 如何查看my.cnf的 位置

[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@]

posted @ 2015-12-21 11:27  kaye0110  阅读(1126)  评论(0编辑  收藏  举报