MySQL报错ERROR1872(HY000):Slave failed to initialize
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MySQL报错ERROR1872(HY000):Slave failed to initialize相关的知识,希望对你有一定的参考价值。
ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository
mysql 5.6修复从库复制时报错
mysql> start slave;
ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository
报错原因:
从库已经存在之前的relay log
解决方法:
使用RESET SLAVE语句,清除master信息和relay日志的信息,删除所有的relay日志文件,并开始创建一个全新的中继日志
mysql> stop slave;
mysql> reset slave;
以上是关于MySQL报错ERROR1872(HY000):Slave failed to initialize的主要内容,如果未能解决你的问题,请参考以下文章
ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository
mysql 主从关系ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repositor
使用mysqldump 备份 恢复从库报错解决方案(ERROR 1872)
mysql报错1872: Slave failed to initialize relay log info structure from the repository