【求助!!!】一主多从模式,从服务器同步不一致问题
本帖最后由 zhancat200801 于 2015-12-27 11:38 编辑场景:搭建一主两从的时候,在主服务器上创建一个新数据库,从库1上同步成功,从库2上毫无反应,执行show slave status\G查看都是正常的。
本人解决步骤:
查看主服务器上的错误日志,一切正常,没有发现ERROR。
查看从服务器(毫无反应的那台从服务器)上的错误日志,有如下提示:
2015-12-19 22:01:53 4689 InnoDB: Could not find a valid tablespace file for 'test03/t1'.
2015-12-19 22:01:53 4689 InnoDB: Tablespace open failed for '"test03"."t1"', ignored.
百度了一下,无解。(百度出来的方法都无效)
=============================================分割线=====================================================
遂进行了一系列操作:
如图中所示,最后这条语句卡住了。
kill掉mysql服务,然后手动删除test03目录,重新启动mysql服务、连接mysql,查看(从服务器)错误日志,发现有如下报错:
InnoDB: Table test03/t1 in the InnoDB data dictionary has tablespace id 6, but tablespace with that id or name does not exist. Have you deleted or moved .ibd files? This may also be a table created with CREATE TEMPORARY TABLE whose .ibd and .frm files MySQL automatically removed, but the table still exists in the InnoDB internal data dictionary.
到这个地方,就不知道该如何往下继续了,两台从服务器同步不一致的问题没有任何思路,而delete database又出现了卡住的问题,这两个问题我不清楚是不是同一个原因导致。
请高人指点,谢谢!
发下日志吧 rm test03/t1.* 回复 3# love100
没看明白是什么意思。 回复 3# love100
他已经把test03目录都删掉了 1.mysql服务停止
2.进到test03下/把t1文件删除
页:
[1]