Syntax\n------\n\nSTOP { SLAVE | REPLICA } ["connection_name"] [thread_type [, thread_type] ... ] \n[FOR CHANNEL "connection_name"]\n\nSTOP ALL { SLAVES | REPLICAS } [thread_type [, thread_type]]\n\nSTOP { SLAVE | REPLICA } ["connection_name"] [thread_type [, thread_type] ... ]\n\nSTOP ALL { SLAVES | REPLICAS } [thread_type [, thread_type]] \n\nthread_type: IO_THREAD | SQL_THREAD\n\nDescription\n-----------\n\nStops the slave threads. STOP SLAVE requires the SUPER privilege, or, from MariaDB 10.5.2, the REPLICATION SLAVE ADMIN privilege.\n\nLike START SLAVE, this statement may be used with the IO_THREAD andSQL_THREAD options to name the thread or threads to be stopped. In almost all cases, one never need to use the thread_type options.\n\nSTOP SLAVE waits until any current replication event group affecting one or more non-transactional tables has finished executing (if there is any such replication group), or until the user issues a KILL QUERY or KILL CONNECTION statement.\n\nNote that STOP SLAVE doesn't delete the connection permanently. Next time you execute START SLAVE or the MariaDB server restarts, the slave connection is restored with it's original arguments. If you want to delete a connection, you should execute RESET SLAVE.\n\nSTOP ALL SLAVES\n\nSTOP ALL SLAVES stops all your running slaves. It will give you a note for every stopped connection. You can check the notes with SHOW WARNINGS.\n\nconnection_name\n\nThe connection_name option is used for multi-source replication.\n\nIf there is only one nameless master, or the default master (as specified by the default_master_connection system variable) is intended, connection_name can be omitted. If provided, the STOP SLAVE statement will apply to the specified master. connection_name is case-insensitive.\n\nMariaDB starting with 10.7.0\n\nThe FOR CHANNEL keyword is available for MySQL compatibility. This is identical as using the channel_name directly after STOP SLAVE.\n\nThe FOR CHANNEL keyword is not available.\n\nURL: https://mariadb.com/docs/server/reference/sql-statements/administrative-sql-statements/replication-statements/stop-replica