LoginSignup
0
0

More than 3 years have passed since last update.

ERROR 3021 (HY000): This operation cannot be performed with a running slave io thread; run STOP SLAVE IO_THREAD

Last updated at Posted at 2020-12-08
mysql> CHANGE MASTER TO MASTER_HOST='10.146.0.18',
    -> MASTER_USER='rpl_user',
    -> MASTER_PASSWORD='password',
    -> MASTER_LOG_FILE='mysql-bin.000091',
    -> MASTER_LOG_POS=1372;
ERROR 3021 (HY000): This operation cannot be performed with a running slave io thread; run STOP SLAVE IO_THREAD FOR
 CHANNEL '' first.

というエラーが出たので、

mysql> STOP SLAVE;

mysql> CHANGE MASTER TO MASTER_HOST='10.146.0.18',
    -> MASTER_USER='rpl_user',
    -> MASTER_PASSWORD='password',
    -> MASTER_LOG_FILE='mysql-bin.000091',
    -> MASTER_LOG_POS=1372;
Query OK, 0 rows affected, 2 warnings (0.03 sec)

mysql> START SLAVE;

と対応した。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0