级联复制改成主从复制
A->B->C 将C直接挂接到A。即A->(B、C) (1)、在B中操作 stop slave; show master status; # 记录结果 (2)、在C中操作,使C的Relay_Master_Log_File和Exec_Master_Log_Pos等于B中输出的状态值 show slave statusG; stop slave; (3)、在B中记录A的日志坐标:使C的Relay_Master_Log_File和Exec_Master_Log_Pos的值 show slave statusG; start slave ; (4)、在C中停止运行同步,并执行change master stop slave ; CHANGE MASTER TO MASTER_HOST='192.168.142.143', MASTER_USER='repuser', MASTER_PASSWORD='repuserpwd', MASTER_PORT=3306, MASTER_AUTO_POSITION = 1; start slave ; show slave statusG;