One - One Code All

Blog Content

查看mysql正在使用的配置文件

MySQL   2014-08-03 09:54:55

1、查看是否使用了指定目录的my.cnf


ps aux|grep mysql|grep 'my.cnf'


如果上面的命令没有输出,表示没有设置使用指定目录的my.cnf。


2、查看mysql默认读取my.cnf的目录


mysql --help|grep 'my.cnf'


这些就是mysql默认会搜寻my.cnf的目录,顺序排前的优先。


3、如果没有设置使用指定目录my.cnf文件及默认读取目录没有my.cnf文件,表示mysql启动时并没有加载配置文件,而是使用默认配置。



上一篇:凯利公式
下一篇:Java下载文件的几种方式

The minute you think of giving up, think of the reason why you held on so long.