67
69

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MySQLをstartしたら[ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't existがでたとき

Posted at

ちょっとだけ詰まったのでメモ

MySQLのの起動に失敗し、こんな感じのエラーが出た時↓
[ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

データベースディレクトリがどこだかわからない状態になっているみたいです。

mysql_install_db --datadir=/var/lib/mysql --user=mysql
してから
/etc/rc.d/init.d/mysqld start
startしたら治りました

↓参考にさせていただきました
CentOS5.6にMySQL5.5をインストールする
http://infoscoopjp.wordpress.com/2012/04/18/mysql5-5/

67
69
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
67
69

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?