Wpadłem w kłopoty z MySQL na moim CentOS. Mam pewne problemy i kopię zapasową bazy danych i usunąłem mysql ze wszystkimi zależnościami. Potem wpadłem ponownie zainstalować:Wystąpił błąd limitu czasu podczas próby uruchomienia demona MySQL. CentOS 5
yum groupinstall "MySQL Database"
zainstalowany bez błędów.
Uruchamianie demona mysql:
service mysqld start
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL: [FAILED]
Ja również prowadził
# /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!
Sprawdzanie logów:
less /var/log/mysqld.log
plik dziennika jest pusty. Nie wiem nawet jak to debugować i nie wiem, co robić.
Jakieś rekomendacje?
Dziękuję
To zaoszczędziło mi dużo czasu, dzięki! –
Pomyślał o tym przez godzinę 4! Dzięki! –