STOP {SLAVE | REPLICA} [thread_types
] [channel_option
]thread_types
: [thread_type
[,thread_type
] ... ]thread_type
: IO_THREAD | SQL_THREADchannel_option
: FOR CHANNELchannel
Stops the replication threads. 停止复制线程。From MySQL 8.0.22, 在MySQL 8.0.22中,STOP SLAVE
is deprecated and the alias STOP REPLICA
should be used instead. STOP SLAVE
已被弃用,应改用别名STOP REPLICA
。The 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
文档以了解该语句的描述。