shell如下 chmod 644 /etc/my.cnf 然后执行: service mysqld restart 转载于:https://www.cnblogs.com/light-zhang/p/8349844.html