rpm mysql 啟動報錯 mysql 啟動報錯

2021-10-18 00:10:57 字數 1275 閱讀 1593

今天在centos5.2 64位機器上安裝mysql-5.1.32-linux-x86_64-icc-glibc23.tar.gz,啟動服務出現報錯:

starting mysql.manager of pid-file quit without updating file.[failed]

平時裝mysql都還沒有出過什麼問題,於是馬上認真檢查了步驟,沒有什麼問題。只好網上求助了。得到以下方法:

1.注釋掉 skip-federated,按此方法操作,無果。

2.關閉selinux,已經關閉了,所以排除。 執行命令:setenforce 0

檢視mysql日誌,發現錯誤:

/usr/local/mysql/bin/mysqld: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: no such file or directory

090320 00:59:22 mysqld_safe mysqld from pid file /var/log/mysql/mysql.pid ended

090320 01:17:29 mysqld_safe starting mysqld daemon with databases from /mysql_data/

可以看出缺少庫檔案 libstdc++.so.5。

安裝:rpm -ivh compat-libstdc++-33-3.2.3-61.x86_64.rpm

再重新啟動mysql服務,啟動ok.

到此一般都能ok了,如還不能。。

考,徹底瘋掉了

又陷入網路的深處,看到一篇文章得到靈感

原來是需要殺掉已經啟動的程序

code:

[root@sh0-srv-tux-01 ~]# ps -a|grep mysql

8016 pts/2 00:00:00 mysqld_safe

8037 pts/2 00:00:00 mysqld

果然有兩個頑固分子

殺之!!!

kill -9 8037(殺掉這個8016那個就自動被殺了!)

kill -9 8016

開心的時刻終於到來了

code:

[root@sh0-srv-tux-01 ~]# /etc/init.d/mysql restart

mysql manager or server pid file could not be found! [failed]

starting mysql [ ok ]

tomcat 啟動報錯

tomcat 啟動日誌報出以下錯誤 error transport error 202 bind failed address already in use transport.c l41 error jdwp transport dt socket failed to initialize,tra...

nfs啟動報錯

root localhost service nfs start starting nfs services ok starting nfs mountd failed starting nfs daemon rpc.nfsd writing fd to kernel failed errno 11...

tomcat啟動報錯

toc 啟動錯誤 does not exist or is not a readable directory server tomcat v7.0 server at localhost failed to start.解決辦法 把你工作空間資料夾下的如下路徑開啟 metadata plugins ...