網頁

2011年4月18日 星期一

Timeout error occurred trying to start MySQL Daemon


Stopping MySQL : [OK]
Timeout error occurred trying to start MySQL Daemon
Starting MySQL : [FAILED]

移除密碼後一切正常
# 需然出現 FAILED 但 mysql 仍是可正常運作 !

我想應該是 "/et/rc.d/init.d/mysqld" 這隻 Scripts 的問題!
於是我比較 RH9 及 Fedora cora 1 /et/rc.d/init.d/mysqld這檔案內容,
發現Fedora cora 1比RH9多出了以下一段:

# Spin for a maximum of ten seconds waiting for the server to come up
if [ $ret -eq 0 ]; then
for x in 1 2 3 4 5 6 7 8 9 10; do
if [ -n "`/usr/bin/mysqladmin ping 2> /dev/null`" ]; then
break;
else
sleep 1;
fi
done
if !([ -n "`/usr/bin/mysqladmin ping 2> /dev/null`" ]); then
echo "Timeout error occurred trying to start MySQL Daemon."
action $"Starting $prog: " /bin/false
else
action $"Starting $prog: " /bin/true



From: 鳥哥的 Linux 私房菜-新手討論區

沒有留言:

張貼留言

注意:只有此網誌的成員可以留言。