1. 程式人生 > >mysql報錯問題解決MySQL server PID file could not be found!

mysql報錯問題解決MySQL server PID file could not be found!

MySQL server PID file could not be found! 

無法啟動mysql服務

# service mysqld start

MySQL server PID file could not be found!                  [FAILED]
Starting MySQL...The server quit without updating PID file [FAILED]ydata/centossz008.pid).

通過ss -tnl發現服務仍然存在

服務假死,強行將服務停用

# killall mysqld

重啟


ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'

檢視mysql資料目錄許可權是否正常

# chown -R mysql.mysql /data