怎么查看mysql当前使用的是哪个配置文件?

怎么查看mysql当前使用的是哪个配置文件?


[root@guan ~]# which mysql

/usr/bin/mysql


[root@guan ~]# /usr/bin/mysql --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/etc/my.cnf ~/.my.cnf


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

默认的选项是按照给定的顺序读取从以下文件:

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


            
            

本博客源码Github地址:

https://github.com/whisnos/myblog

请随手给个star,谢谢!

打赏

评论