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

原文地址:https://www.cnblogs.com/kaye0110/p/5062880.html