Documentation Home
MySQL 8.0 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 40.6Mb
PDF (A4) - 40.7Mb
PDF (RPM) - 40.2Mb
HTML Download (TGZ) - 10.7Mb
HTML Download (Zip) - 10.7Mb
HTML Download (RPM) - 9.3Mb
Man Pages (TGZ) - 241.8Kb
Man Pages (Zip) - 346.8Kb
Info (Gzip) - 3.9Mb
Info (Zip) - 3.9Mb
Excerpts from this Manual

MySQL 8.0 Reference Manual  /  ...  /  Stopping Multi-Source Replicas

17.1.5.6 Stopping Multi-Source Replicas

The STOP REPLICA | SLAVE statement can be used to stop a multi-source replica. By default, if you use the STOP REPLICA | SLAVE statement on a multi-source replica all channels are stopped. Optionally, use the FOR CHANNEL channel clause to stop only a specific channel.

  • To stop all currently configured replication channels:

    mysql> STOP SLAVE;
    Or from MySQL 8.0.22:
    mysql> STOP REPLICA;
  • To stop only a named channel, use a FOR CHANNEL channel clause:

    mysql> STOP SLAVE FOR CHANNEL "source_1";
    Or from MySQL 8.0.22:
    mysql> STOP REPLICA FOR CHANNEL "source_1";

For the full syntax of the STOP REPLICA | SLAVE command and other available options, see Section 13.4.2.8, “STOP REPLICA | SLAVE Statement”.