处理更改 MySQL relay log 目录后 slave 无法启动故障

问题:更改 relay log 目录后 slave 无法启动


2018-08-03T02:53:36.172465Z 0 [ERROR] Failed to open the relay log './mysql03-relay-bin.000018' (relay_log_pos 9680848).
2018-08-03T02:53:36.172515Z 0 [ERROR] Could not find target log file mentioned in relay log info in the index file '/var/lib/mysql/logs/relay-bin.index' during relay log initialization.
2018-08-03T02:53:36.222879Z 0 [ERROR] Slave: Failed to initialize the master info structure for channel ''; its record may still be present in 'mysql.slave_master_info' table, consider deleting it.
2018-08-03T02:53:36.222955Z 0 [ERROR] Failed to create or recover replication info repositories.
2018-08-03T02:53:36.222995Z 0 [ERROR] Slave SQL for channel '': Slave failed to initialize relay log info structure from the repository, Error_code: 1872
2018-08-03T02:53:36.223007Z 0 [ERROR] /usr/sbin/mysqld: Slave failed to initialize relay log info structure from the repository
2018-08-03T02:53:36.223014Z 0 [ERROR] Failed to start slave threads for channel ''

处理方法:

mysql> reset slave;
mysql> change master to master_host='192.168.1.224',master_user='root',master_password='MySQL5.7',master_auto_position=1;
mysql> start slave;

转载于:https://blog.51cto.com/linux10000/2153984

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值