mysql主从报错:Last_Error: Slave failed to initialize relay log info structure from the repository

阅读 48

2022-03-31

报错信息

  • show slave status\G查看如下
    Last_Error: Slave failed to initialize relay log info structure from the repository
  • error.log查看如下
    2022-03-31T02:54:04.925947Z 0 [ERROR] [MY-011059] [Repl] Could not find target log file mentioned in relay log info in the index file '/usr/local/mysql/logs/mysql-relay-bin.index' during relay log initialization.

原因

之前配置主从失败,再次配置导致的错误

解决办法


mysql> reset slave;
mysql> start slave;
``

精彩评论(0)

0 0 举报