查看命令

mysqld --verbose --help|grep "Default options" -n1

 

输出结果

11-
12:Default options are read from the following files in the given order:
13-/etc/my.cnf /etc/mysql/my.cnf /home/uar/local/mysql/etc/my.cnf ~/.my.cnf

 

指定配置示例

/home/work/local/mysql/bin/mysqld_safe --defaults-file=/home/work/local/mysql/etc/my.cnf &

 

相关文章: