mysql 主从关系ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repositor
Posted qxhn
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql 主从关系ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repositor相关的知识,希望对你有一定的参考价值。
连接 amoeba-mysql出现Could not create a validated object, cause: ValidateObject failed
mysql> start slave;
ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository
原因:检查my.cnf,原来没指定relay_log,mysql默认产生的relay_log名被该server上的另一个mysql slave占用了。
解决方法:
1.在my.cnf中添加
relay_log=/db/mysql56/logs/relay_98_3326
2. reset slave
mysql>reset slave
mysql>change master to
master_host=‘192.168.0.38‘,
master_user=‘repl‘,
master_password=‘slave‘,
master_port=3306,
master_log_file=‘mysql-bin.001229‘,
master_log_pos=15970007;
mysql>start slave;
以上是关于mysql 主从关系ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repositor的主要内容,如果未能解决你的问题,请参考以下文章
ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository
MySQL报错ERROR1872(HY000):Slave failed to initialize
mysql报错1872: Slave failed to initialize relay log info structure from the repository
使用mysqldump 备份 恢复从库报错解决方案(ERROR 1872)
故障处理ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository(示例(代
两主机搭建MySQL主从复制后,show slave status显示:Last_IO_Error: error connecting to master ……