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

無事エラーが消えました。

This entry was posted on 月曜日, 6月 11th, 2012 at 3:17 PM and is filed under mysql. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Unityによるゲームを公開しております iOS/Android
https://itunes.apple.com/jp/app/lost-knight-3d-action/id900917032
https://play.google.com/store/apps/details?id=com.groundroad.runknight

各種開発支援・機能開発等小さいお仕事などもお請けしております。
unity開発支援, PHPシステム開発, javascript/html5 フロント開発, titanium mobileアプリ開発
お気軽にお問い合わせください
大崎・五反田近郊での対面でのお打ち合わせはいつでも可能です。