Browse Source

STOP/RESET SLAVE FOR CHANNEL

master
Benoît S. 1 month ago
parent
commit
0179f071b6
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      HowtoMySQL/Replication.md

+ 14
- 0
HowtoMySQL/Replication.md 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)
~~~

Loading…
Cancel
Save