美文网首页
mysql查看正在使用配置文件路径 my.cnf

mysql查看正在使用配置文件路径 my.cnf

作者: think_lonely | 来源:发表于2018-01-07 23:39 被阅读103次

#查看mysql命令的路径

root@msc3:~# which mysqld

/usr/sbin/mysqld

#执行下边命令找到my.cnf

root@msc3:~# /usr/sbin/mysqld --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 ~/.my.cnf

相关文章

网友评论

      本文标题:mysql查看正在使用配置文件路径 my.cnf

      本文链接:https://www.haomeiwen.com/subject/ubhvnxtx.html