percona5.7开启gtid

## 配置
gtid_mode=on
enforce_gtid_consistency=on

从库启用Gtid的自动查找节点复制:
stop slave;
change master to master_auto_position=1;
start slave;
show slave status\G

分享文章:percona5.7开启gtid
文章出自:http://azwzsj.com/article/geighp.html