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

来源:互联网 发布:残疾人婚恋软件 编辑:程序博客网 时间:2024/06/10 17:17

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
原创粉丝点击