InnoDB: Cannot open table xxx/xxx from the internal data dictionary of InnoDB though the .frm file

遇到以下报错:

[Warning] InnoDB: Cannot open table 
xxx/xxx from the internal data dictionary of InnoDB though the .frm file for the table exists. 
Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html for how to resolve the issue.

[ERROR] InnoDB: 
Table `xxx`.`xxx` does not exist in the InnoDB internal data dictionary though MySQL is trying to drop it. 
Have you copied the .frm file of the table to the MySQL database directory from another database? 
Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting.html for how to resolve the issue.

据官方解释是数据字典不同步(out-of-sync data dictinary),原因是数据目录里有.frm文件,但是没有对应的数据字典信息以及数据文件,解决方法是删除掉相关表的.frm文件。
实际环境中为什么会出现这个报错已经无从考据了,确认该表已经没用,将.frm文件清理。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值