标签:ons 3.4 bin miss hang star glob nsa pre
环境见上篇系列文章
关闭GTID,不用停止服务,不影响线上业务
#SLVAE实例上停止复制
STOP SLAVE
#SLVAE实例上查看复制的位置
SHOW SLAVE STATUS \G
# 查看 Master_Log_File 和 Read_Master_Log_Pos对应的值
binlog.000012:1821
#重新 CHANGE MASTER
CHANGE MASTER TO MASTER_AUTO_POSITION=0,
MASTER_LOG_FILE='binlog.000012',
MASTER_LOG_POS=1821;
#开启SLAVE
START SLAVE;
SET @@GLOBAL.GTID_MODE=ON_PERMISSIVE;
SET @@GLOBAL.GTID_MODE=OFF_PERMISSIVE;
mysql> SELECT @@GLOBAL.GTID_OWNED;
+---------------------+
| @@GLOBAL.GTID_OWNED |
+---------------------+
| |
+---------------------+
1 row in set (0.00 sec)
SET @@GLOBAL.GTID_MODE=OFF;
gtid_mode=OFF
enforce_gtid_consistency=OFF
MySQL5.7.6版本以后,支持在线修改GTID模式
SET @@GLOBAL.ENFORCE_GTID_CONSISTENCY=WARN;
SET @@GLOBAL.ENFORCE_GTID_CONSISTENCY=ON;
SET @@GLOBAL.GTID_MODE=OFF_PERMISSIVE;
SET @@GLOBAL.GTID_MODE=ON_PERMISSIVE;
SHOW STATUS LIKE 'ONGOING_ANONYMOUS_TRANSACTION_COUNT';
SET @@GLOBAL.GTID_MODE=ON;
gtid_mode=ON
enforce_gtid_consistency=1
标签:ons 3.4 bin miss hang star glob nsa pre
原文地址:https://www.cnblogs.com/chinesern/p/9387963.html