The incident LOST_EVENTS occured on the master. Message: error writing to the binary log, Error_code

来源:互联网 发布:蚂蜂窝连app接不到网络 编辑:程序博客网 时间:2024/06/05 14:25

1 mysq error日志报错如下:

2014-05-12 11:29:54 22977 [ERROR] Slave SQL: The incident LOST_EVENTS occured on the master. Message: error writing to the binary log, Error_code: 1590
2014-05-12 11:29:54 22977 [ERROR] Error running query, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with "SLAVE START". We stopped at log 'mysql-bin.010275' position 91642


2 登录mysql从库,check slave状态

  1. mysql> show slave status\G  
  2. *************************** 1. row ***************************  
  3.                Slave_IO_State: Waiting for master to send event  
  4.                   Master_Host: 10.2xx.3.xx  
  5.                   Master_User: repl  
  6.                   Master_Port: 3306  
  7.                 Connect_Retry: 60  
  8.               Master_Log_File: mysql-bin.010298  
  9.           Read_Master_Log_Pos: 67843  
  10.                Relay_Log_File: mysql-relay-bin.003125  
  11.                 Relay_Log_Pos: 91805  
  12.         Relay_Master_Log_File: mysql-bin.010275  
  13.              Slave_IO_Running: Yes  
  14.             Slave_SQL_Running: No  
  15.               Replicate_Do_DB: business_db,user_db,plocc_system  
  16.           Replicate_Ignore_DB:   
  17.            Replicate_Do_Table:   
  18.        Replicate_Ignore_Table:   
  19.       Replicate_Wild_Do_Table:   
  20.   Replicate_Wild_Ignore_Table:   
  21.                    Last_Errno: 1590  
  22.                    Last_Error: The incident LOST_EVENTS occured on the master. Message: error writing to the binary log  
  23.                  Skip_Counter: 0  
  24.           Exec_Master_Log_Pos: 91642  
  25.               Relay_Log_Space: 2420882  
  26.               Until_Condition: None  
  27.                Until_Log_File:   
  28.                 Until_Log_Pos: 0  
  29.            Master_SSL_Allowed: No  
  30.            Master_SSL_CA_File:   
  31.            Master_SSL_CA_Path:   
  32.               Master_SSL_Cert:   
  33.             Master_SSL_Cipher:   
  34.                Master_SSL_Key:   
  35.         Seconds_Behind_Master: NULL  
  36. Master_SSL_Verify_Server_Cert: No  
  37.                 Last_IO_Errno: 0  
  38.                 Last_IO_Error:   
  39.                Last_SQL_Errno: 1590  
  40.                Last_SQL_Error: The incident LOST_EVENTS occured on the master. Message: error writing to the binary log  
  41.   Replicate_Ignore_Server_Ids:   
  42.              Master_Server_Id: 71  
  43.                   Master_UUID: 9b0dcf62-29f4-11e3-9471-677b33903869  
  44.              Master_Info_File: mysql.slave_master_info  
  45.                     SQL_Delay: 0  
  46.           SQL_Remaining_Delay: NULL  
  47.       Slave_SQL_Running_State:   
  48.            Master_Retry_Count: 86400  
  49.                   Master_Bind:   
  50.       Last_IO_Error_Timestamp:   
  51.      Last_SQL_Error_Timestamp: 140512 11:29:54  
  52.                Master_SSL_Crl:   
  53.            Master_SSL_Crlpath:   
  54.            Retrieved_Gtid_Set:   
  55.             Executed_Gtid_Set:   
  56.                 Auto_Position: 0  
  57. 1 row in set (0.00 sec)  
  58.   
  59.   
  60. mysql>   
从这里看出来,复制down了。


3,google了很多资料,大部分出现在mysql cluster中,大家的做法都是从新做从库,或者换个master接入点。

时间紧急,我也只能从新搭建从库了,特留此记录于此,如果有朋友看到这里,有别的解决方案,非常欢迎留言或者发email到mchdba@tom.com

0 0
原创粉丝点击