当前位置:   article > 正文

mysql 3021 (HY000) 主从复制错误解决办法_error 3021 (hy000): this operation cannot be perfo

error 3021 (hy000): this operation cannot be performed with a running slave

mysql主从复制,从机验证报错:ERROR 3021(HY000):this operation cannot be performed with a running salve io thread

原因:

mysql从机上已经进行过绑定了,如果继续绑定需要先进行重置。

解决办法

1、停止已经启动的绑定

stop slave

2、重置绑定

reset master

3、执行复制主机命令

  1. change master to
  2. master_host='192.168.2.26',
  3. master_user='slave',
  4. master_password='123456',
  5. master_log_file='mysql-bin.000001',
  6. master_log_pos=655;

4、发现此时已经不报错
5、启动复制

start slave

6、查看状态

show slave status \G

 

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号