All Products
Search
Document Center

PolarDB:RESET SLAVE ALL

Last Updated:Dec 10, 2024

This topic describes how to use the RESET SLAVE ALL statement to remove primary/secondary replication links established by executing the CHANGE MASTER TO statement.

Syntax

RESET SLAVE ALL [ channel_option ]

channel_option:
    FOR CHANNEL channel

Example 1

Execute the following statement to remove all primary/secondary replication links established by executing the CHANGE MASTER TO statement.

RESET SLAVE ALL;

Example 2

Execute the following statement to remove the primary/secondary replication link with the channel named TEST.

RESET SLAVE ALL for channel 'TEST';