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