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

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;

你可能感兴趣的:(Error)