[ERROR] Cannot find or open table ..from the internal data dictionary of InnoDB

主从数据同步过程中遇到的错误:


120514 14:45:35 [ERROR] Cannot find or open table quyou/t_ivan_innodb from
the internal data dictionary of InnoDB though the .frm file for the
table exists. Maybe you have deleted and recreated InnoDB data
files but have forgotten to delete the corresponding .frm files
of InnoDB tables, or you have moved .frm files to another database?
or, the table contains indexes that this version of the engine
doesn't support.

1.冷备(tar)过程中遇到上述错误

 cd /data/mysql/3306/data/
 ls
changyou  ib_logfile0  mysql    quyou    xtrabackup_binlog_info   ibdata1   ib_logfile1  sohu   stdout    test       xtrabackup_binary  xtrabackup_binlog_pos_innodb

错误产生:

只tar changyou、quyou、sohu,未tar ib*开头的文件

原因:

对于含有innodb表的数据文件不能只备份数据文件,还需备份ib*开头的文件

2.热备(innobackupex-1.5.1)过程中遇到上述错误

错误产生:

从库在mysqld停止服务的情况下删除data下所有数据文件(除mysql外)和中继日志文件,然后启动mysqld服务,innobackupex导入数据文件后,未重启mysqld服务,直接配置主从,导致show innodb status查看表明上主从已同步,show tables,innodb表存在,但select innodb表时报表不存在的错误。

原因:

使用innodbbackupex导入完数据后,未重启mysqld服务,直接做主从,导致读取的共享表空间数据有误。

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23073137/viewspace-723548/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/23073137/viewspace-723548/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值