Documentation Home
MySQL Replication
Related Documentation Download this Excerpt
PDF (US Ltr) - 1.4Mb
PDF (A4) - 1.4Mb
HTML Download (TGZ) - 363.0Kb
HTML Download (Zip) - 377.4Kb


MySQL Replication  /  ...  /  Resetting Multi-Source Replication Slaves

2.4.7 Resetting Multi-Source Replication Slaves

The RESET SLAVE statement can be used to reset a multi-source replication slave. By default, if you use the RESET SLAVE statement on a multi-source replication slave all channels are reset. Optionally, use the FOR CHANNEL channel clause to reset only a specific channel.

  • To reset all currently configured replication channels:

    RESET SLAVE;
  • To reset only a named channel, use a FOR CHANNEL channel clause:

    RESET SLAVE FOR CHANNEL "master_1";

For GTID-based replication, note that RESET SLAVE has no effect on the slave's GTID execution history. If you want to clear this, issue RESET MASTER on the slave.

RESET SLAVE makes the slave forget its replication position, and clears the relay log, but it does not change any replication connection parameters (such as the master host) or replication filters. If you want to remove these for a channel, issue RESET SLAVE ALL.

For the full syntax of the RESET SLAVE command and other available options, see RESET SLAVE Statement.