教程集 www.jiaochengji.com
教程集 >  数据库  >  mysql  >  正文 MYSQL: Failed to open the relay log解决办法

MYSQL: Failed to open the relay log解决办法

发布时间:2023-05-03   编辑:jiaochengji.com
教程集为您提供MYSQL: Failed to open the relay log解决办法等资源,欢迎您收藏本站,我们将为您提供最新的MYSQL: Failed to open the relay log解决办法资源
昨天在MySQL主从复制突然就出现了Could not initialize master info structure; more error messages can be found in the MySQL error log。错误,下面来分享我的解决办法。

下面看解决办法

打开log日志发现是因为如下的原因:

111121 15:15:22 [ERROR] Failed to open the relay log ‘./dong-relay-bin.000002′ (relay_log_pos 1067)

111121 15:15:22 [ERROR] Could not find target log during relay log initialization

可以按照下面的方法解决:

1、停止mysql服务

2、在mysql日志目录下删除所有的relay logs,包括hostname-relay-bin.XXX, hostname-relay-bin.index and relay-log.info等等

3、重启mysql服务

这样mysql就会重新生成relay 日志。

您可能感兴趣的文章:
MYSQL: Failed to open the relay log解决办法
MySQL主从配置提示Failed to initialize the master info structure错误
mysql中Relay log read failure master slave的解决方法
mysql删除mysql-bin.000xxx文件导致mysql无法启动解决方法
搭建Mysql MHA高可用集群 各种报错解决
mysql启动故障一例
mysql5.5提示Could not initialize master info structure
mysql 清除relay-log文件方法详解
解决:failed to open stream: No such file or directory in
mysql禁用日志后无法启动问题怎么解

[关闭]
~ ~