Mysql5.7
stop slave;
set @@SESSION.GTID_NEXT='507e80e9-3648-11e9-aa70-fa163e77a52d:20173';
begin;
commit;
set GTID_NEXT='AUTOMATIC';
start slave;
show slave status\G
Mysql5.7
stop slave;
set @@SESSION.GTID_NEXT='507e80e9-3648-11e9-aa70-fa163e77a52d:20173';
begin;
commit;
set GTID_NEXT='AUTOMATIC';
start slave;
show slave status\G
转载于:https://www.cnblogs.com/Coye/p/10448383.html