Slave failed to initialize relay log info structure from the repository

现象

查看slave 服务状态

show slave statusG;

错误

Last_Errno: 1872
Last_Error: Slave failed to initialize relay log info structure from the repository

原因

由于my.cnf 配置中,relay_log 文件名发生了变化。

解决

stop slave;
reset slave;
start slave;
show slave status;       #查看最新状态, 发现已经恢复正常
原文地址:https://www.cnblogs.com/brookin/p/4737620.html