Mysqlエラー[Table 'mysql.plugin' doesn't exist]
Mysql起動時に下記エラーを出し、Mysqlが起動できない事象が発生した。その解決手順を紹介する。
/usr/libexec/mysqld: Table 'mysql.plugin' doesn't exist
140529 19:07:00 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
1./etc/my.cnf の [mysqld] セクションに[skip-grant-tables]追加
# vi /etc/my.cnf
skip-grant-tables
2.mysql_upgrade実行
mysqlユーザで実行する必要がある。
# su - mysql
$ /usr/bin/mysql_upgrade
Looking for 'mysql' as: /usr/bin/mysql
Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck
Running 'mysqlcheck with default connection arguments
Running 'mysqlcheck with default connection arguments
Running 'mysql_fix_privilege_tables'...
OK
3.skip-grant-tablesを削除する
$ su -
# /etc/inti.d/mysql stop
# vi /etc/my.cnf
#skip-grant-tables
4.Mysqlの再起動
# /etc/inti.d/mysql start
![]() |
MySQLトラブルシューティング |
![]() |
