MySQL啓動錯誤Starting MySQL.Manager of pid-file quit without

一、查看報錯日誌

報錯日誌是我們解決問題的方向燈,沒有方向燈我們就沒了方向。

安裝時報錯日誌裏就有這樣的錯誤:

/usr/local/mysql/bin/mysqld:error whileloading shared libraries:libstdc++.so.5:cannot open sharedobject file:No such fileordirectory

是缺少了庫文件 libstdc++.so.5 ,這時我們搜索和libstdc相關的包安裝即可。

二、selinux

如果是centos系統,默認會開啓selinux,這個時候可以先關閉它,打開/etc/selinux/config,把SELINUX=enforcing改爲SELINUX=disabled後存盤退出reboot .

殺掉已經啓動的進程

[root@localhost mysql]# ps -A|grep mysql

1269 ?        00:00:00 mysqld_safe

1373 ?        00:00:00 mysqld

果然有兩個頑固分子

殺之!!!

kill -9 1269

kill -9 1373

CODE:

[root@localhost mysql]# /etc/init.d/mysql restart

MySQL manager or server PID file could not be found! [FAILED]

Starting MySQL [ OK ]

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