解决mysql主从 The slave IO thread stops because the master has @@GLOBAL.GTID_MODE OFF and this server

mysql主从出现的报错
解决mysql主从 The slave IO thread stops because the master has @@GLOBAL.GTID_MODE OFF and this server_第1张图片
【报错信息】

初始状态Master和Slave都开启了enforce-gtid-consistency和gtid-mode,然后在Master上把它俩都改动成了off关闭状态,这时。Slave发生报错:

Last_IO_Error: The slave IO thread stopsbecause the master has @@GLOBAL.GTID_MODE OFF and this server has@@GLOBAL.GTID_MODE ON

【报错原因】

MySQL的Master和Slave必须同一时候开启或者关闭enforce-gtid-consistency和gtid-mode功能,即要保持一致。
解决mysql主从 The slave IO thread stops because the master has @@GLOBAL.GTID_MODE OFF and this server_第2张图片
【解决方法】

关闭Slave上的enforce-gtid-consistency和gtid-mode功能。
删除也行,之后重启
解决mysql主从 The slave IO thread stops because the master has @@GLOBAL.GTID_MODE OFF and this server_第3张图片
解决

你可能感兴趣的:(mysql)