主从数据同步过程中遇到的错误:
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/