Tell the slave to use the master with GTID based transactions as the replication data source, and to use GTID-based auto-positioning rather than file-based positioning. Issue a CHANGE MASTER TO statement on the slave, including the MASTER_AUTO_POSITION option in the statement to tell the slave that the master's transactions are> 查看备机信息
1.主库show slave hosts;
SELECT * FROM information_schema.PROCESSLIST WHERE COMMAND = 'Binlog Dump'; 查看同步状态
1.Show slave status\G
SELECT SERVICE_STATE FROM performance_schema.replication_connection_status;