Got fatal error 1236 from master when reading data from binary log: 'Could not find first log fi

Posted ritchy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Got fatal error 1236 from master when reading data from binary log: 'Could not find first log fi相关的知识,希望对你有一定的参考价值。

mysql> show slave status G
Slave_IO_Running: No
Slave_SQL_Running: Yes

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‘


--主库
mysql> flush logs;
Query OK, 0 rows affected (0.03 sec)

mysql> show master status;
+------------------+----------+--------------+------------------+-------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set |
+------------------+----------+--------------+------------------+-------------------+
| mysql-bin.000003 | 154 | | | |
+------------------+----------+--------------+------------------+-------------------+
1 row in set (0.00 sec)


--从库
mysql> CHANGE MASTER TO MASTER_LOG_FILE=‘mysql-bin.000003‘,MASTER_LOG_POS=154;
Query OK, 0 rows affected (0.00 sec)

mysql> start slave;
Query OK, 0 rows affected (0.00 sec)

mysql> show slave status G
Slave_IO_Running: Yes
Slave_SQL_Running: Yes

以上是关于Got fatal error 1236 from master when reading data from binary log: 'Could not find first log fi的主要内容,如果未能解决你的问题,请参考以下文章

mysql主从同步失败Last_IO_Error: Got fatal error 1236 from master解决方法

mysql主从同步失败Last_IO_Error: Got fatal error 1236 from master解决方法

Got fatal error 1236 from master when reading data from binary log: 'Could not find first log fi

Got fatal error 1236 from master when reading data from binary log: 'Could not find first log fi

MySQL案例09:Last_IO_Error: Got fatal error 1236 from master when reading data from binary log

mysql从库Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'Could