‘Could not find first log file name in binary log index file‘的解决办法

mysql主从报异常Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file name in binary log index file'

数据库主从出错:
Slave_IO_Running: No 一方面原因是因为网络通信的问题也有可能是日志读取错误的问题。以下是日志出错问题的解决方案:

Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file name in binary log index file'

解决办法:

从机器停止slave

mysql> stop slave;

master机器登陆mysql:

记录master的bin的位置,例如:mysql> show master status;
+<

你可能感兴趣的:(MySQL,mysql,数据库)