Slave failed to initialize relay log info structure from the repository, Error_code: 1872

root@localhost [(none)]>reset master;
Query OK, 0 rows affected (0.04 sec)
root@localhost [(none)]>

[root@mysqlcentos01 mysqlback]# mysql -S /tmp/mysql3306.sock -u root -p <test-20170616.sql 
Enter password: 
[root@mysqlcentos01 mysqlback]#

root@localhost [(none)]>CHANGE MASTER TO MASTER_HOST='10.194.41.231',  MASTER_PORT=3306, MASTER_USER='repl', MASTER_PASSWORD='evis123', MASTER_AUTO_POSITION=1;
Query OK, 0 rows affected, 2 warnings (0.01 sec)

root@localhost [(none)]>start slave;
ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository
root@localhost [(none)]>

2017-08-28T01:22:26.153487Z 4 [ERROR] Slave SQL for channel '': Slave failed to initialize relay log info structure from the repository, Error_code: 1872
2017-08-28T01:22:54.169173Z 4 [Note] 'CHANGE MASTER TO FOR CHANNEL '' executed'. Previous state master_host='10.194.41.231', master_port= 3306, master_log_file='', master_log_pos= 4, master_bind=''. New state master_host='10.194.41.231', master_port= 3306, master_log_file='', master_log_pos= 4, master_bind=''.
2017-08-28T01:22:58.137705Z 4 [ERROR] Slave SQL for channel '': Slave failed to initialize relay log info structure from the repository, Error_code: 1872

root@localhost [(none)]>reset slave all;
Query OK, 0 rows affected (0.06 sec)

root@localhost [(none)]>CHANGE MASTER TO MASTER_HOST='10.194.41.231',  MASTER_PORT=3306, MASTER_USER='repl', MASTER_PASSWORD='evis123', MASTER_AUTO_POSITION=1;
Query OK, 0 rows affected, 2 warnings (0.01 sec)

root@localhost [(none)]>start slave;
Query OK, 0 rows affected (0.00 sec)

root@localhost [(none)]


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值