Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file name in binary log index file'
setup slave from backup i got 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' |
MASTER
MariaDB [(none)]> SHOW BINLOG EVENTS IN 'mysqld-bin.140180' FROM 101070557 LIMIT 4; |
+-------------------+-----------+----------------+-----------+-------------+---------------------------------------+ |
| Log_name | Pos | Event_type | Server_id | End_log_pos | Info | |
+-------------------+-----------+----------------+-----------+-------------+---------------------------------------+ |
| mysqld-bin.140180 | 101070557 | Gtid | 7 | 101070595 | BEGIN GTID 0-7-8640143404 | |
| mysqld-bin.140180 | 101070595 | Table_map | 7 | 101070647 | table_id: 4446293 (dating.users_hits) | |
| mysqld-bin.140180 | 101070647 | Update_rows_v1 | 7 | 101070695 | table_id: 4446293 flags: STMT_END_F | |
| mysqld-bin.140180 | 101070695 | Query | 7 | 101070778 | COMMIT | |
+-------------------+-----------+----------------+-----------+-------------+---------------------------------------+ |
4 rows in set (0.00 sec) |
MariaDB [(none)]> show binary logs ; |
+-------------------+------------+ |
| Log_name | File_size | |
+-------------------+------------+ |
| mysqld-bin.140100 | 134219175 | |
... |
| mysqld-bin.140180 | 134217853 | |
| mysqld-bin.140181 | 134232575 | |
| mysqld-bin.140182 | 134229889 | |
... |
| mysqld-bin.140570 | 46141034 | |
+-------------------+------------+ |
547 rows in set (0.00 sec) |
#>for f in $(cat mysqld-bin.index); do test -f $f || echo "Not found $f" ; done; |
<no output> |
|
#>head mysqld-bin.index |
./mysqld-bin.140100 |
./mysqld-bin.140101 |
./mysqld-bin.140102 |
./mysqld-bin.140103 |
./mysqld-bin.140104 |
./mysqld-bin.140105 |
./mysqld-bin.140106 |
./mysqld-bin.140107 |
./mysqld-bin.140108 |
./mysqld-bin.140109 |
SLAVE
MariaDB [(none)]> change master to master_host='10.8.2.31', master_user='replica', master_password='', master_log_file='mysqld-bin.140180 ', master_log_pos=101070557; |
Query OK, 0 rows affected (0.00 sec) |
|
MariaDB [(none)]> start slave IO_THREAD; |
Query OK, 0 rows affected (0.00 sec) |
MariaDB [(none)]> show slave status\G |
*************************** 1. row *************************** |
Slave_IO_State: |
Master_Host: 10.8.2.31 |
Master_User: replica |
Master_Port: 3306 |
Connect_Retry: 60 |
Master_Log_File: mysqld-bin.140180 |
Read_Master_Log_Pos: 101070557 |
Relay_Log_File: relay-bin.000001 |
Relay_Log_Pos: 4 |
Relay_Master_Log_File: mysqld-bin.140180 |
Slave_IO_Running: No |
Slave_SQL_Running: No |
... |
Exec_Master_Log_Pos: 101070557 |
... |
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' |
160330 15:18:42 [Note] Slave SQL thread initialized, starting replication in log 'mysqld-bin.140180 ' at position 101070557, relay log './relay-bin.000001' position: 4 |
160330 15:18:42 [Note] Slave I/O thread: connected to master 'replica@10.8.2.31:3306',replication started in log 'mysqld-bin.140180 ' at position 101070557 |
160330 15:18:42 [ERROR] Error reading packet from server: Could not find first log file name in binary log index file ( server_errno=1236) |
160330 15:18:42 [ERROR] Slave I/O: Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file name in binary log index file', Internal MariaDB error code: 1236 |
160330 15:18:42 [Note] Slave I/O thread exiting, read up to log 'mysqld-bin.140180 ', position 10 |
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】MySQL同步报错-> Last_IO_Error: Got fatal error 1236 from master when reading data from binary log
这个报错网上搜索了一下,大部分是由于MySQL意外关闭或强制重启造成的binlog文件事务点读取异常造成的主从同步报错 Last_IO_Error: Got fatal error 1236 from ...
- mysql 主从 Got fatal error 1236 from master when reading data from binary log: 'Could not find first 错误
本地MySQL环境,是两台MySQL做M-M复制.今天发现错误信息: mysql 5.5.28-log> show slave status\G ************************ ...
- Last_IO_Errno: 1236 Last_IO_Error: Got fatal error 1236 from master when reading data from binary lo
mysql> show slave status\G *************************** 1. row *************************** ...
- Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file name in binary log index file'系列一:
从库报这个错误:Got fatal error 1236 from master when reading data from binary log: 'Could not find first lo ...
- Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file name in binary log index file'系列三:重置主从同步
1:停止slave服务器的主从同步 stop slave; 2:对Master数据库加锁 flush tables with read lock; 3:备份Master上的数据 mysqldump - ...
- MySQL案例09:Last_IO_Error: Got fatal error 1236 from master when reading data from binary log
刚处理完“挖矿”事件,在做最后一个MySQL NBU备份的时候,发现从库有问题,好奇的是怎么主从状态异常没有告警呢?先不管这么多了,处理了这个问题再完善告警内容. 一.错误信息 从库show slav ...
- mysql从库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运行状况与备份情况,登录mysql从库查看主从同步状态 mysql> show slave status\G; *************************** . ...
- Got fatal error 1236 from master when reading data from binary log: 'Client requested master to start replication from impossible position
在source那边,执行: flush logs;show master status; 记下File, Position. 在target端,执行: CHANGE MASTER TO MASTER_ ...
- Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file name in binary log index file'系列二:reset slave
reset slave会清除从库的所有复制信息.一般应用场景:如切换为不同的Master, 主从重做等: 1. 命令在slave上执行,执行前一定要stop slave. 2. 执行reset sla ...
随机推荐
- [转]如何卸载eclipse中的ADT
卸载ADT的方法,方法如下:1.选择Help>Install New Software:2.在"Details" 面板中, 点击"What is already ...
- 【EGit】The current branch is not configured for pull No value for key branch.master.merge found in config
1.在当前项目的本地工程目录找到config文件(例如E:\rocket\rocket\.git): 2.修改config文件内容为: [core] repositoryformatversio ...
- 参加SAP VT项目有感
凡事预则立,不预则废. 没有接到录取电话还是有些悲伤的,虽然知道最终被录取的可能性不大,但是之前还是抱着一丝期望的,毕竟是自己的处女面,就这么以失败的结果结束了. 从最开始的投递简历,到后来的电话面试 ...
- windows2008服务器连接Oracle慢的问题。
昨天发布程序到2008服务器的IIS,从Sql Server数据库取数没问题,但是从Oracle数据库取数,非常的慢,同样的程序在2003服务器上没问题,本机也没问题.一开始怀疑是这台机器有问题,后来 ...
- SharePoint Server 2013 Offline Installation (without Internet)
转自:http://social.msdn.microsoft.com/Forums/sharepoint/zh-CN/08f90e0f-1f52-4eba-9f6e-4dd635ffaadc/sha ...
- 未能加载文件或程序集“file:///D:/Program Files (x86)/ArcGIS/DeveloperKit10.0/DotNet/ESRI.ArcGIS.3DAnalyst.dll”或它的某一个依赖项。试图加载格式不正确的程序。 行 129,位置 5。
能加载文件或程序集“file:///C:/Program Files (x86)/ArcGIS/DeveloperKit10.0/DotNet/ESRI.ArcGIS.ADF.Local.dll”或它 ...
- 【微信小程序】view顶部固定或底部固定 + scroll-view中的元素view也可以使用position:fixed;固定选中元素位置
1.顶端固定核心代码如下: <view class="page__hd" style="position:fixed; top:0;width: 750rpx;&q ...
- windows下用Xshell远程登录Linux
1.下载安装Xshell 2.右击打开终端,输入su ->口令切换到root 3.查看虚拟机IP 输入命令:ifconfig 若提示not found ,输入/sbin/ifconfig (ex ...
- 菜鸟的mongoDB学习---(七)MongoDB 备份(mongodump)与恢复(mongorerstore)
MongoDB数据备份 在Mongodb中我们使用mongodump命令来备份MongoDB数据. 该命令能够导出全部数据到指定文件夹中. mongodump命令能够通过參数指定导出的数据量级转存的s ...
- Shuttle ESB(四)——公布订阅模式实例介绍(1)
前面,我已经集中用了三篇文章来讲Shuttle ESB的入门实例与宏观概念. Shuttle ESB一共同拥有两种发送消息的模式:请求/对应模式与Pub/Sub模式. 关于这两种模式的区分.请看以下文 ...