Said GTID - Clear the execution history GTID

RESET MASTER can be used to remove the execution history GTID. If you want a node local transaction executed, added to the Group Replication, it is necessary to perform under RESET MASTER.



Perform RESET MASTER series will bring the following effects:


· Global system variable gtid_purged will be empty.

· Global system variable gtid_executed will be empty.

• System Tables mysql.gtid_executed will be cleared.

• If binary logging is enabled, logs and binary log index files will be cleaned up.



Speaking RESET MASTER, might think RESET SLAVE, RESET SLAVE execution but will not remove the execution history GTID, it will clear the mysql.slave_relay_log_info, mysql.slave_worker_info two tables, and cleaning up the relay log.



Speaking RESET SLAVE, we tend to think of RESET SLAVE ALL, which in addition to the completion of RESET SLAVE action, also cleared mysql.slave_master_info table, copy, and delete all the channels (replication channel), and then create a default channel.

Guess you like

Origin blog.51cto.com/coveringindex/2424698