機器重啓之後,主從出現了問題,具體報錯信息:php
Slave failed to initialize relay log info structure from the repositorymysql
解決方案:sql
mysql> start slave; ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository mysql> reset slave; Query OK, 0 rows affected (0.04 sec) mysql> start slave IO_THREAD; Query OK, 0 rows affected (0.07 sec) mysql> stop slave IO_THREAD; Query OK, 0 rows affected (0.01 sec) mysql> reset slave; Query OK, 0 rows affected (0.10 sec) mysql> start slave; Query OK, 0 rows affected (0.20 sec) mysql> show slave status\G
參考:https://bugs.mysql.com/bug.php?id=83713spa