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'
情况,从服务器停宕机的时候对主服务器进行了写操作,当从服务器启动起来之后,show slave status的时候,发现 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'
解决步骤:
查看主服务器的file和position,然后在从服务器上执行
stop slave;
change master to master_host='172.16.21.170', master_password='123456', master_log_file='mysql-bin.000002', master_log_pos=1174;
start slave;
然后就正常了。