查看MySQL配置文件的路径,MySQL配置文件my.cnf在哪里?

[root@vultr ~]# which mysql

/usr/bin/mysql

[root@vultr ~]# /usr/bin/mysql –verbose –help | grep -A 1 ‘Default options’

Default options are read from the following files in the given order:

/etc/mysql/my.cnf /etc/my.cnf ~/.my.cnf