赞
踩
mysql配置主从复制出现以下异常:
1.slave服务器执行命令:
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.出现异常信息:
ERROR 1198 (HY000): This operation cannot be performed with a running slave; run STOP SLAVE first
3.解决方案:
进入slave服务器mysql执行命令:STOP slave;
在执行上面CHANGE MASTER命令
成功后再执行命令:START slave;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。