Linux查询MySql默认配置文件加载路径

来源:互联网 发布:网络教育考试考代数吗 编辑:程序博客网 时间:2024/05/16 06:15

首先查询mysql安装路径

$ which mysql
显示mysql安装路径如下
/usr/bin/mysql
然后输入如下语句查询默认配置文件加载路径

$ /usr/local/mysql/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/local/mysql/etc/my.cnf ~/.my.cnf 



0 0
原创粉丝点击