码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2019-10-30 18:22:46      阅读:391      评论:0      收藏:0      [点我收藏+]

标签:read   query   strong   art   binary   server   logs   bin   mysql-bin   

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 file name in binary log index file'

标签:read   query   strong   art   binary   server   logs   bin   mysql-bin   

原文地址:https://www.cnblogs.com/ritchy/p/11766299.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!