13.4.2.10 STOP SLAVE | REPLICA Statement语句

STOP {SLAVE | REPLICA} [thread_types] [channel_option]
thread_types:
    [thread_type [, thread_type] ... ]
thread_type: IO_THREAD | SQL_THREAD
channel_option:
    FOR CHANNEL channel

Stops the replication threads. 停止复制线程。From MySQL 8.0.22, STOP SLAVE is deprecated and the alias STOP REPLICA should be used instead. 在MySQL 8.0.22中,STOP SLAVE已被弃用,应改用别名STOP REPLICAThe statement works in the same way as before, only the terminology used for the statement and its output has changed. 语句的工作方式与以前相同,只是用于语句及其输出的术语发生了更改。Both versions of the statement update the same status variables when used. 两个版本的语句在使用时更新相同的状态变量。Please see the documentation for STOP REPLICA for a description of the statement.请参阅STOP REPLICA文档以了解该语句的描述。