Mysql加载配置默认路径

查看命令

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 &

 

posted on 2016-06-29 18:32  SYSTEM ADMINISTRATION  阅读(1070)  评论(0编辑  收藏  举报

导航