In MySQL master-slave replication, one is normal, the other reports ERROR 3021

The configuration of the slave server is no problem, one can be configured normally, the other reports an error, the error message is as follows

ERROR 3021 (HY000): This operation cannot be performed with a running slave io thread; run STOP SLAVE IO_THREAD FOR CHANNEL ‘’ first.

Solution

1. Stop the binding that has been started

stop slave;

2. Reset binding

reset master;

3. Execute the copy host command

change master to master_host='192.168.235.150',master_user='myslave',master_password='123456',master_log_file='master-bin.000001',master_log_pos=604;

4. It is found that no error is reported at this time
5. Start the copy

start slave;

Guess you like

Origin blog.csdn.net/weixin_39608791/article/details/108255601