Rechercher dans le manuel MySQL
17.1.4.7 Resetting Multi-Source Replication Slaves
The RESET SLAVE
statement can be
used to reset a multi-source replication slave. By default, if you
use the RESET SLAVE
statement on a
multi-source replication slave all channels are reset. Optionally,
use the FOR CHANNEL
clause to reset only
a specific channel.
channel
To reset all currently configured replication channels:
- RESET SLAVE;
To reset only a named channel, use a
FOR CHANNEL
clause:channel
- RESET SLAVE FOR CHANNEL "master_1";
For GTID-based replication, note that RESET
SLAVE
has no effect on the slave's GTID execution
history. If you want to clear this, issue
RESET MASTER
on the slave.
RESET SLAVE
makes the slave forget
its replication position, and clears the relay log, but it does
not change any replication connection parameters (such as the
master host) or replication filters. If you want to remove these
for a channel, issue RESET SLAVE ALL
.
For the full syntax of the RESET
SLAVE
command and other available options, see
Section 13.4.2.4, “RESET SLAVE Statement”.
Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-replication-multi-source-reset-slave.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.