linux安装mysql之rpm包安装的错误收集

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/LGHunter/article/details/83615114

1、关闭linux后重启,启动服务时报ERROR! The server quit without updating PID file (/var/lib/mysql/bogon.pid)
Starting MySQL… ERROR! The server quit without updating PID file (/var/lib/mysql/bogon.pid).

解决方案:
1、授权mysql读写权限:

chmod 777 mysql

2、查询mysql的pid并关闭

#查询
ps -ef | grep mysql
#如有,关闭
kill -9 pid

3、关闭防火墙

#centos6.x
chkconfig iptables off
#centos7.x
systemctl stop firewalld

猜你喜欢

转载自blog.csdn.net/LGHunter/article/details/83615114
今日推荐