virtual box 裡的虛擬機centos關機時出現virtualbox異常,結果重開後就mysql掛了
使用phpMyAdmin出現錯誤訊息
Can't connect to local MySQL server through socket '/var/mysql/mysql.sock'
雖然google 很好用,但是搜尋的關鍵字沒用對,花了一個早上無解。
後來發現根本連mysql服務都無法啟動, 並出現
Another MySQL daemon already running with the same unix socket
終於皇天不負苦心人, 解法參考
http://stackoverflow.com/questions/20407292/centos-another-mysql-daemon-already-running-with-the-same-unix-socket
# mv /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock.bak
# service mysqld start
就好了!
沒有留言:
張貼留言