Error : Cannot load from mysql.proc. The table is probably corrupted | mysql
Error : Cannot load from mysql.proc. The table is probably corrupted
こんなエラー。
mysqlのバージョンが違うようで、バックアップしたデータをそのまま入れたので変更が必要
mysql_upgradeしてみる。
$ sudo mysql_upgrade –datadir=/home/simpleblog/data/my/data > mysqllog
mysql_upgrade: the ‘–datadir’ option is always ignored
datadirが使えないので
$ sudo mysql_upgrade -P 50999 -h 127.0.0.1 > mysqllog
にしたらOKでした。
Looking for ‘mysql’ as: mysql
Looking for ‘mysqlcheck’ as: mysqlcheck
Running ‘mysqlcheck’ with connection arguments: ‘–port=50531′ ‘–host=127.0.0.1′
Running ‘mysqlcheck’ with connection arguments: ‘–port=50531′ ‘–host=127.0.0.1′
mysql.columns_priv OK
mysql.db OK
mysql.event OK
mysql.func OK
mysql.general_log
Error : You can’t use locks with log tables.
status : OK
mysql.help_category OK
mysql.help_keyword OK
mysql.help_relation OK
mysql.help_topic OK
mysql.host OK
mysql.ndb_binlog_index OK
mysql.plugin OK
mysql.proc OK
mysql.procs_priv OK
mysql.proxies_priv OK
mysql.servers OK
mysql.slow_log
Error : You can’t use locks with log tables.
status : OK
mysql.tables_priv OK
mysql.time_zone OK
mysql.time_zone_leap_second OK
mysql.time_zone_name OK
mysql.time_zone_transition OK
mysql.time_zone_transition_type OK
mysql.user OK
simpleblog.article OK
simpleblog.blog OK
simpleblog.category OK
simpleblog.category_article OK
Running ‘mysql_fix_privilege_tables’…
OK
無事エラーが消えました。