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