MySQL参数文件没有生效

启动数据库后,发现参数文件没有生效,使用了默认的设置
仔细查看启动命令,发现有Warning: World-writable config file '/etc/my_55_3306.cnf' is ignored的警告

  1. [root@tomcat02 ~]# /home/mysql_software_55/bin/mysqld_safe --defaults-file=/etc/my_55_3306.cnf &
  2. [1] 19032
  3. [root@tomcat02 ~]# Warning: World-writable config file '/etc/my_55_3306.cnf' is ignored
  4. Warning: World-writable config file '/etc/my_55_3306.cnf' is ignored
  5. 180423 09:18:41 mysqld_safe Logging to '/home/mysql_software_55/data/tomcat02.err'.
  6. 180423 09:18:41 mysqld_safe Starting mysqld daemon with databases from /home/mysql_software_55/data

  7. # 查看参数文件的权限,发现其他组也具有写权限
  8. [root@tomcat02 mysql_software_55]# ll /etc/my_55_3306.cnf
  9. -rw-rw-rw- 1 root root 2252 Apr 23 12:24 /etc/my_55_3306.cnf

  10. # 解决方法,收回其他组的写权限
  11. [root@tomcat02 mysql_software_55]# chmod 644 /etc/my_55_3306.cnf


请使用浏览器的分享功能分享到微信等