当前位置:   article > 正文

ERROR 1198 (HY000): This operation cannot be performed with a running slave; run STOP SL

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

mysql配置主从复制出现以下异常:

  1. slave服务器执行命令
    1. CHANGE MASTER TO MASTER_HOST='192.168.116.101', MASTER_USER='root', MASTER_PASSWORD='Root1234', MASTER_LOG_FILE='mysql-bin.000003', MASTER_LOG_POS=107;
  2. 出现异常信息
    1. ERROR 1198 (HY000): This operation cannot be performed with a running slave; run STOP SLAVE first
  3. 解决方案
    1. 进入slave服务器mysql执行命令:STOP slave;
    2. 在执行上面CHANGE MASTER命令
    3. 成功后再执行命令:START slave;
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/160454
推荐阅读
相关标签
  

闽ICP备14008679号