10bet网址
MySQL 8.0 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr)- 41.6Mb
PDF (A4)- 41.7Mb
Man Pages (TGZ)- 262.5Kb
Man Pages (Zip)- 372.6Kb
Info (Gzip)- 4.0Mb
Info (Zip)- 4.0Mb
Excerpts from this Manual

17.1.5.6 Stopping Multi-Source Replicas

TheSTOP REPLICAstatement can be used to stop a multi-source replica. By default, if you use theSTOP REPLICAstatement on a multi-source replica all channels are stopped. Optionally, use theFOR CHANNELchannelclause 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 aFOR CHANNELchannelclause:

    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 theSTOP REPLICAcommand and other available options, seeSection 13.4.2.10, “STOP REPLICA Statement”.