GreatSQL社区

搜索

[讨论中] 主备切换报错

66 2 前天 08:08
本帖最后由 xiebin 于 2024-10-21 08:12 编辑

centos 7   mysql8.0.16  主库1 备库1  现在将备库1切换成主库,主库1为备库,现在切换后新备库报错

Last_IO_Errno: 13114
Got fatal error 1236 from master when reading data from binary log: 'Cannot replicate because the master purged required binary logs. Replicate the missing transactions from elsewhere, or provision a new slave from backup. Consider increasing the master's binary log expiration period. To find the missing transactions, see the master's error log or the manual for GTID_SUBTRACT.'
全部回复(2)
yejr 前天 09:14
这个报错是表示master端部分日志已被清空。
如果主从数据一致的话,就重新change master设置下。
如果主从数据不一致,那就需要重建从节点,重新设置复制关系。
xiebin 前天 10:56
本帖最后由 xiebin 于 2024-10-21 11:37 编辑
yejr 发表于 2024-10-21 09:14
这个报错是表示master端部分日志已被清空。
如果主从数据一致的话,就重新change master设置下。
如果主从 ...

如何避免这个错误。(我没有清理binlog)
xiebin

7

主题

0

博客

17

贡献

新手上路

Rank: 1

积分
27

合作电话:010-64087828

社区邮箱:greatsql@greatdb.com

社区公众号
社区小助手
QQ群
GMT+8, 2024-10-23 05:50 , Processed in 0.018624 second(s), 13 queries , Redis On.
快速回复 返回顶部 返回列表