linux安裝mysql之rpm包安裝的錯誤收集

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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章