Slave failed to initialize relay log info structure from the repository

Posted qiaohechen

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Slave failed to initialize relay log info structure from the repository相关的知识,希望对你有一定的参考价值。

前几天做主从同步的时候没什么问题,今天做双机热备的时候出现了问题,问题如下:
Slave failed to initialize relay log info structure from the repository(服务器未能从存储库初始化中继日志信息结构)
可能是某些记录的存在导致的把,所以就尝试的用mysql自带的还原给还原了一下,成功了,具体如下:
我是在从库做的主库的数据同步,所以在linux中的从库中进行的mysql命令,先停止从库同步操作,再做还原
mysql> stop slave;
Query OK, 0 rows affected (0.02 sec)

mysql> reset slave;
Query OK, 0 rows affected (0.06 sec)
然后在进行一次被可以了!
没啥可说的,还原一下准定好使,做个笔记,以后方便回顾查看!

以上是关于Slave failed to initialize relay log info structure from the repository的主要内容,如果未能解决你的问题,请参考以下文章

MySQL复制ERROR 1794 (HY000): Slave is not configured or failed to initialize properly.

MySQL复制报错(Slave failed to initialize relay log info structure from the repository)

Slave failed to initialize relay log info structure from the repository

ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository

主从复制时报:ERROR 1794 (HY000): Slave is not configured or failed to initialize properly. You must at lea

mysql 主从关系ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repositor