22
0
Fork 0

STOP/RESET SLAVE FOR CHANNEL

This commit is contained in:
Benoît S. 2020-08-05 09:03:52 +02:00
parent 1e1d7e67e1
commit 0179f071b6
1 changed files with 14 additions and 0 deletions

View File

@ -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)
~~~