Centos7主从复制,slave不同步

闪回恢复:
该操作应用于主从数据无法同步,
stop slave;
mysql> change master to
-> master_host=‘192.168.122.104’,
-> master_user=‘repl’,
-> master_port=3306,
-> master_log_file=‘mysql.000010’,
-> master_log_pos=194;
ERROR 3079 (HY000): Multiple channels exist on the slave. Please provide channel name as an argument.
,执行上一条语句后,出现错误,执行清除命令
mysql> reset slave all;
Query OK, 0 rows affected (0.42 sec)
再次执行即可成功
change master to
master_host=‘192.168.122.104’,
master_user=‘repl’,
master_port=3306,
master_log_file=‘mysql.000002’,
master_log_pos=154;

change master to
master_host=‘192.168.122.102’,
master_user=‘slave’,
master_password=‘lifulai_000’,
master_log_file=‘mysql.000002’,
master_log_pos=154;
start slave;
show slave status \G;

Last_IO_Error: error connecting to master ‘[email protected]:3306’ - retry-time: 60 retries: 1
解决:
stop slave;
mysql> reset slave all;

change master to
master_host=‘192.168.122.104’,
master_user=‘repl’,
master_password=’!QAZ2wsx#’,
master_auto_position=1 FOR CHANNEL ‘kvm122104’;

你可能感兴趣的:(错误解决)