仔细查看启动命令,发现有Warning: World-writable config file '/etc/my_55_3306.cnf' is ignored的警告
-
[root@tomcat02 ~]# /home/mysql_software_55/bin/mysqld_safe --defaults-file=/etc/my_55_3306.cnf &
-
[1] 19032
-
[root@tomcat02 ~]# Warning: World-writable config file '/etc/my_55_3306.cnf' is ignored
-
Warning: World-writable config file '/etc/my_55_3306.cnf' is ignored
-
180423 09:18:41 mysqld_safe Logging to '/home/mysql_software_55/data/tomcat02.err'.
-
180423 09:18:41 mysqld_safe Starting mysqld daemon with databases from /home/mysql_software_55/data
-
-
# 查看参数文件的权限,发现其他组也具有写权限
-
[root@tomcat02 mysql_software_55]# ll /etc/my_55_3306.cnf
-
-rw-rw-rw- 1 root root 2252 Apr 23 12:24 /etc/my_55_3306.cnf
-
-
# 解决方法,收回其他组的写权限
- [root@tomcat02 mysql_software_55]# chmod 644 /etc/my_55_3306.cnf