我在CentOS上遇到了MySQL的麻煩。 我有一些問題,並備份我的數據庫,並刪除與所有依賴關係的MySQL。 之後,我跑了重新安裝:嘗試啓動MySQL守護程序時發生超時錯誤。 CentOS 5
yum groupinstall "MySQL Database"
安裝沒有錯誤。
運行MySQL守護程序:
service mysqld start
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL: [FAILED]
我也跑
# /usr/bin/mysql_install_db --user=mysql
Installing MySQL system tables...
120112 1:49:44 [ERROR] Error message file '/usr/share/mysql/english/errmsg.sys' had only 480 error messages,
but it should contain at least 481 error messages.
Check that the above file is the right version for this program!
120112 1:49:44 [ERROR] Aborting
Installation of system tables failed!
Examine the logs in /var/lib/mysql for more information.
You can try to start the mysqld daemon with:
/usr/libexec/mysqld --skip-grant &
and use the command line tool
/usr/bin/mysql to connect to the mysql
database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.
The latest information about MySQL is available on the web at
http://www.mysql.com
Please consult the MySQL manual section: 'Problems running mysql_install_db',
and the manual section that describes problems on your OS.
Another information source is the MySQL email archive.
Please check all of the above before mailing us!
And if you do mail us, you MUST use the /usr/bin/mysqlbug script!
檢查日誌:
less /var/log/mysqld.log
日誌文件是空的。我甚至不知道如何進行調試,也不知道該怎麼做。
有什麼建議嗎?
謝謝
這爲我節省了很多時間,謝謝! – 2015-05-07 20:50:08
按小時4會想到那個!謝謝! – 2015-07-01 19:49:31