EVE为什么显示魔兽世界登陆信息有误数据有误

MySQL主从失败
错误Got fatal error 1236解决方法_数据库技术_Linux公社-Linux系统门户网站
你好,游客
MySQL主从失败
错误Got fatal error 1236解决方法
来源:Linux社区&
作者:Linux
由于主服务器异外重启, 导致从报错, 错误如下:show slave status错误:mysql& show slave status\G
Master_Log_File: mysql-bin.000288
Read_Master_Log_Pos:
Relay_Log_File: mysql-relay-bin.000990
Relay_Log_Pos:
Relay_Master_Log_File: mysql-bin.000288
Slave_IO_Running: No
Slave_SQL_Running: Yes
Exec_Master_Log_Pos:
Relay_Log_Space:
Last_IO_Error: Got fatal error 1236 from master when& reading&data from binary log:
'Client requested master to start& replication from impossible position'
mysql错误日志:tail /data/mysql/mysql-error.log
:35:49 [ERROR] Error reading packet from server: Client requested master
to start replication from impossible position ( server_errno=1236)
:35:49 [ERROR] Slave I/O: Got fatal error 1236 from master when reading data
from&binary log: 'Client requested master to start replication from impossible
position', Error_code: 1236
:35:49 [Note] Slave I/O thread exiting, read up to log 'mysql-bin.000288',
按照习惯, 先尝试必改position位置.mysql&
mysql& change master to master_log_file='mysql-bin.000288',master_log_pos=;
错误依旧, 接下来登陆到主服务器查看binlog日志.先按照错误点的标记去主服务器日志中查找:[root@db1 ~]# mysqlbinlog --start-position= /data/mysql/binlog/mysql-bin.000288
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
DELIMITER /*!*/;
#:31:19 server id 4 end_log_pos 106 Start: binlog v 4, server v 5.1.45-log
created :31:19
# Warning: this binlog is either in use or was not closed properly.
F1aTTg8EAAAAZgAAAGoAAAABAAQANS4xLjQ1LWxvZwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAEzgNAAgAEgAEBAQEEgAAUwAEGggAAAAICAgC
DELIMITER ;
# End of log file
ROLLBACK /* added by mysqlbinlog */;
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
没有看到这个位置.[root@db1 ~]# mysqlbinlog /data/mysql/binlog/mysql-bin.000288 & test.txt
less text.txt
看最后一部分
#:35:46 server id 1 end_log_pos
Query thread_id=
exec_time=32758 error_code=0
SET TIMESTAMP=/*!*/;
delete from freeshipping_bef_update where part='AR-4006WLM' and code=''
#:35:46 server id 1 end_log_pos
Query thread_id=
exec_time=32758 error_code=0
SET TIMESTAMP=/*!*/;
delete from shippingFee_special where part='AR-4006WLM'
DELIMITER ;
# End of log file
ROLLBACK /* added by mysqlbinlog */;
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
找到最接近错误标记的一个position是.
再回到slave机器上change master, 将postion指向这个位置.mysql&
Query OK, 0 rows affected (0.00 sec)
mysql& change master to master_log_file='mysql-bin.000288',master_log_pos=;
Query OK, 0 rows affected (0.06 sec)
Query OK, 0 rows affected (0.00 sec)
再次查看mysql& show slave status\G
*************************** 1. row ***************************
Slave_IO_State: Queueing master event to the relay log
Master_Host: 192.168.21.105
Master_User: rep
Master_Port: 3306
Connect_Retry: 10
Master_Log_File: mysql-bin.000289
Read_Master_Log_Pos:
Relay_Log_File: mysql-relay-bin.000003
Relay_Log_Pos: 630
Relay_Master_Log_File: mysql-bin.000289
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
主从同步正常了, 同样的方法修复其它slave机器.
相关资讯 & & &
& (12/16/:08)
& (12/16/:02)
& (04/09/:28)
& (12/16/:41)
& (12/16/:35)
   同意评论声明
   发表
尊重网上道德,遵守中华人民共和国的各项有关法律法规
承担一切因您的行为而直接或间接导致的民事或刑事法律责任
本站管理人员有权保留或删除其管辖留言中的任意内容
本站有权在网站内转载或引用您的评论
参与本评论即表明您已经阅读并接受上述条款您的位置:
EVE数据v1.3.2
说起卡通小编就想到了动画片((?□)??┻━┻),很多我们小时候看的卡通片人物都以Q萌,可爱为主,现在小编整理了iPhone端的趣味卡通游戏,专挑可爱,Q萌,极…
喜欢消除游戏的玩家不在少数,小伙伴们想想如果消除游戏带上卡通元素是不是更加犯规呢。喜欢卡通消除游戏的玩家没有坏人((?□)??┻━┻),小编在此为各位小伙伴们整…
EVE数据v1.3.2
本站仅创建用户沟通交流的平台,所展示的安卓软件资源内容来自于第三方上传分享,版权问题均与我站无关。资源仅作为用户间分享讨论之用,除开发商授权外不以盈利为目的。如该游戏触犯了您的权利,请申诉!邮箱:
16045人推荐
9195人推荐
3554人推荐
3281人推荐
2982人推荐
2942人推荐
2117人推荐
2093人推荐
1716人推荐
1715人推荐
热门游戏:
最新游戏:
网络游戏:
CopyRight2004年-年
游迅网 All Rights Reserved
备案编号:沪ICP备号-9

参考资料

 

随机推荐