码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2018-04-28 21:04:42      阅读:265      评论:0      收藏:0      [点我收藏+]

标签:ast   my.cnf   mysql 主从   ida   star   bsp   host   amoeba   fail   

连接 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 repository

标签:ast   my.cnf   mysql 主从   ida   star   bsp   host   amoeba   fail   

原文地址:https://www.cnblogs.com/qxhn/p/8969249.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!