【MySQL 5.7.19】The server quit without updating PID file
xixuefeng
MySQL
2017-09-25 14:55:54
1,126 次浏览
【MySQL 5.7.19】The server quit without updating PID file已关闭评论
这个错误有很多种情况,如果不是经常搞MySQL,可能偶尔就会遇到这个错误,有一种情况如下:
【MySQL 5.7.19】The server quit without updating PID file (/data/db/mysql/3306/mysql.pid).[FAILED]
当然今儿遇到的另一种情况,全新安装的CentOS 7,安装完成后,就按照文档http://www.xxf-home.net/archives/643进行安装,可是在启动MySQL时有报这个错误了,最后发现,产生这个错误的另一种情况就是selinux,CentOS 7默认情况下selinux是开启的。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
[root@Yjiu ~]# cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=enforcing # SELINUXTYPE= can take one of three two values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection. SELINUXTYPE=targeted [root@Yjiu ~]# |
改为
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
[root@Yjiu ~]# cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of three two values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection. SELINUXTYPE=targeted [root@Yjiu ~]# |