Mysql8.0主机重启后,slave一直连接不上(Slave_IO_Running)

Mysql8.0主从复制,原本一切正常,但主机重启后,从机的Slave_IO_Running: 一直处于connecting状态,网上各种方法都试过了,没解决


MySQL [(none)]> show slave status \G
*************************** 1. row ***************************
               Slave_IO_State: 
                  Master_Host: 192.168.217.16
                  Master_User: slave
                  Master_Port: 3311
                Connect_Retry: 60
              Master_Log_File: mysql-binlog.000011
          Read_Master_Log_Pos: 2250
               Relay_Log_File: node3-relay-bin.000001
                Relay_Log_Pos: 4
        Relay_Master_Log_File: mysql-binlog.000011
             Slave_IO_Running: No
            Slave_SQL_Running: Yes
              Replicate_Do_DB: 
          Replicate_Ignore_DB: 
           Replicate_Do_Table: 
       Replicate_Ignore_Table: 
      Replicate_Wild_Do_Table: 
  Replicate_Wild_Ignore_Table: 
                   Last_Errno: 0
                   Last_Error: 
                 Skip_Counter: 0
          Exec_Master_Log_Pos: 2250
              Relay_Log_Space: 154
              Until_Condition: None
               Until_Log_File: 
                Until_Log_Pos: 0
           Master_SSL_Allowed: No
           Master_SSL_CA_File: 
           Master_SSL_CA_Path: 
              Master_SSL_Cert: 
            Master_SSL_Cipher: 
               Master_SSL_Key: 
        Seconds_Behind_Master: NULL
Master_SSL_Verify_Server_Cert: No
                Last_IO_Errno: 1236
                Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file name in binary log index file'

这个会输出主从复制的日志,你看看你的Last_IO_Error 给的内容是什么,然后根据这个日志修复问题。上面这个例子是change命令里的日志文件错误。
https://blog.csdn.net/alwaysbefine/article/details/127768131 这个是我的博客,你可以看看。