diff --git a/HowtoMySQL/Replication.md b/HowtoMySQL/Replication.md index 3b96fdba..008d821d 100644 --- a/HowtoMySQL/Replication.md +++ b/HowtoMySQL/Replication.md @@ -720,4 +720,18 @@ Comme ça on peut voir l'erreur explicite : ~~~ Error 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '=1' at line 1' on query. Default database: 'DB_content_cfbe'. Query: 'delete from toppops_cfbe_null_20200702_104153_V220 where rank=1' +~~~ + +## Actions sur les slaves en mode réplication par Channel + +Faire un `SHOW SLAVE STATUS\G` pour connaitre le `Channel_Name`, puis faire les actions classiques, `START`, `STOP`, `RESET`. + +Exemple : + +~~~ +mysql> STOP SLAVE FOR CHANNEL "cdb0-sql41"; +Query OK, 0 rows affected (2.01 sec) + +mysql> RESET SLAVE ALL FOR CHANNEL "cdb0-sql41"; +Query OK, 0 rows affected (0.02 sec) ~~~ \ No newline at end of file