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://scyanting.com/article/geighp.html