mysql 查询读取配置的优先级


mysql所在linux服务器执行
/usr/bin/mysql –verbose –help | grep -A 1 ‘Default optio’

 

输出:

Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf ~/.my.cnf

 

 

得知  优先取 /etc/my.cnf  如果没有 再取后面的 

 

所以我们要修改mysql配置的时候  需要需改/etc/my.cnf

 

原创文章,作者:carmelaweatherly,如若转载,请注明出处:https://blog.ytso.com/273674.html

(0)
上一篇 2022年7月11日
下一篇 2022年7月11日

相关推荐

发表回复

登录后才能评论