报错信息
- 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;
``