InnoDB: MySQL and InnoDB data dictionaries are out of sync + InnoDB: AUTOINC next value generation

线上mysql服务器日志出现异常,错误如下:

[root@localhost ~]# tailf /mydata/mydata/localhost.localdomain.err

InnoDB: in effect disabling the AUTOINC next value generation.
InnoDB: You can either set the next AUTOINC value explicitly using ALTER TABLE
InnoDB: or fix the data dictionary by recreating the table.
2015-03-20 17:30:02 7f9ef3559700  InnoDB: AUTOINC next value generation is disabled for 'db_name/table_name'
2015-03-20 17:31:00 7f9ef1af1700  InnoDB: MySQL and InnoDB data dictionaries are out of sync.
InnoDB: Unable to find the AUTOINC column id in the InnoDB table db_name/table_name.
InnoDB: We set the next AUTOINC column value to 0,
InnoDB: in effect disabling the AUTOINC next value generation.
InnoDB: You can either set the next AUTOINC value explicitly using ALTER TABLE

InnoDB: or fix the data dictionary by recreating the table.



发现db_name/table_name表的自增列数值应为36 ,结果却是0,数据量6条,重建表解决。


另外发现该mysql服务器的binlog日志刷新频繁,没到最大日志量,也没flush log,如图:




什么原因导致的呢,是不是和上面自增列问题有关,自增问题已经解决,进一步观察。

看还经常刷新日志不

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值