扫一扫,访问微社区

QQ登录

只需一步,快速开始

查看: 3231|回复: 0

[Windows] mysql5.6 innodb_index_stats mysql.slave_master_info表错误的方法

[复制链接]
发表于 2015-5-25 18:01:19 | 显示全部楼层 |阅读模式

访客您好,登录后可看更多精彩内容!发帖、回复积分还可换实物奖品哦,还在犹豫什么,赶紧注册登录吧!

您需要 登录 才可以下载或查看,没有账号?立即注册

×
本帖最后由 苏康 于 2015-5-25 18:03 编辑

升级MySQL5.6后系统日志中一直有如下错误存在
    innodb_index_stats,innodb_tables_stats,slave_master_info,slave_relay_log_info,slave_worker_info这五张表无法读取。详细日志如下:

2015-05-25 17:38:23 1572 [Warning] InnoDB: Cannot open table mysql/innodb_index_stats from the internal data dictionary of InnoDB though the .frm file for the table exists. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem.
2015-05-25 17:38:23 1572 [Warning] InnoDB: Cannot open table mysql/innodb_table_stats from the internal data dictionary of InnoDB though the .frm file for the table exists. See
http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem.
2015-05-25 17:38:23 1572 [Warning] InnoDB: Cannot open table mysql/slave_master_info from the internal data dictionary of InnoDB though the .frm file for the table exists. See
http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem.
2015-05-25 17:38:23 1572 [Warning] InnoDB: Cannot open table mysql/slave_relay_log_info from the internal data dictionary of InnoDB though the .frm file for the table exists. See
http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem.
2015-05-25 17:38:23 1572 [Warning] InnoDB: Cannot open table mysql/slave_worker_info from the internal data dictionary of InnoDB though the .frm file for the table exists. See
http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem.

解决方法:
     登录数据库,进入mysql库,执行如下SQL语句删除5张表

  1. drop table if exists innodb_index_stats;
  2. drop table if exists innodb_table_stats;
  3. drop table if exists slave_master_info;
  4. drop table if exists slave_relay_log_info;
  5. drop table if exists slave_worker_info;
复制代码
    执行完后,停止数据库服务,并进入到数据库data文件所在目录,删除以上5个表所对应的idb文件。
    删除后重新启动数据库,进入到mysql库,导入mysql_system_tables.sql 到mysql数据库。mysql_system_tables.sql在mysql安装目录的share目录中。)

     导入后这五张表均可正常查询,数据库恢复正常。以上所有操作均在PhpMyAdmin中完成。



毕嘉峰电脑技术论坛-Bijiafeng.com:论技术分享我们更专业更精确!!
关闭

站长推荐 上一条 /1 下一条

9.9全场包邮
客服热线
暂缓开通 周一至周五:09:00 - 18:00
公司地址:北京市海淀区中关科技园
邮箱:root@bijiafeng.com

毕嘉峰电脑技术网始于2008年,由毕嘉峰创办并延续至今,在2012年进行线下转型于2013年正式上线运行。我们坚持初心不忘使命,努力为客户打造准确精准的解决方案,目前处于公益运行,如果你喜欢本站,希望给予赞助让我们做得更好更久,谢谢支持!。

Powered by Discuz!  X3.5 © 2008-2021 毕嘉峰电脑技术网   技术支持: 凡尘

申请友链|手机版|小黑屋|毕嘉峰电脑技术网 ( 京ICP备13033230号-2 )|赞助我们

GMT+8, 2024-4-29 11:35 , Processed in 0.044727 second(s), 27 queries .

快速回复 返回顶部 返回列表