国产片侵犯亲女视频播放_亚洲精品二区_在线免费国产视频_欧美精品一区二区三区在线_少妇久久久_在线观看av不卡

服務器之家:專注于服務器技術及軟件下載分享
分類導航

Mysql|Sql Server|Oracle|Redis|MongoDB|PostgreSQL|Sqlite|DB2|mariadb|Access|數據庫技術|

服務器之家 - 數據庫 - Mysql - MySQL5.1主從同步出現Relay log read failure錯誤解決方法

MySQL5.1主從同步出現Relay log read failure錯誤解決方法

2020-04-13 13:22MYSQL教程網 Mysql

這篇文章主要介紹了MySQL5.1主從同步出現Relay log read failure錯誤解決方法,需要的朋友可以參考下

眾所周知MySQL5.1的Replication是比較爛的。MySQL的每一個版本更新關于同步方面每次都是可以看到一大堆。但MySQL 5.1性能是比較突出的。所以經不住誘惑使用MySQL 5.1。所以也要經常遇到一些Bug。如:

復制代碼 代碼如下:

mysql> show slave status\G
*************************** 1. row ***************************
               Slave_IO_State: Waiting for master to send event
                  Master_Host: 192.168.10.118
                  Master_User: repl_wu
                  Master_Port: 3306
                Connect_Retry: 30
              Master_Log_File: mysql-bin.005121
          Read_Master_Log_Pos: 64337286
               Relay_Log_File: relay-bin.003995
                Relay_Log_Pos: 18446697137031827760
        Relay_Master_Log_File: mysql-bin.005121
             Slave_IO_Running: Yes
            Slave_SQL_Running: No
              Replicate_Do_DB:
          Replicate_Ignore_DB:
           Replicate_Do_Table:
       Replicate_Ignore_Table:
      Replicate_Wild_Do_Table:
  Replicate_Wild_Ignore_Table:
                   Last_Errno: 1594
                   Last_Error: Relay log read failure: Could not parse relay log event entry. The possible reasons are: the master's binary log is corrupted (you can check this by running 'mysqlbinlog' on the binary log), the slave's relay log is corrupted (you can check this by running 'mysqlbinlog' on the relay log), a network problem, or a bug in the master's or slave's MySQL code. If you want to check the master's binary log or slave's relay log, you will be able to know their names by issuing 'SHOW SLAVE STATUS' on this slave.
                 Skip_Counter: 0
          Exec_Master_Log_Pos: 4
              Relay_Log_Space: 64337901
              Until_Condition: None
               Until_Log_File:
                Until_Log_Pos: 0
           Master_SSL_Allowed: No
           Master_SSL_CA_File:
           Master_SSL_CA_Path:
              Master_SSL_Cert:
            Master_SSL_Cipher:
               Master_SSL_Key:
        Seconds_Behind_Master: NULL
Master_SSL_Verify_Server_Cert: No
                Last_IO_Errno: 0
                Last_IO_Error:
               Last_SQL_Errno: 1594
               Last_SQL_Error: Relay log read failure: Could not parse relay log event entry. The possible reasons are: the master's binary log is corrupted (you can check this by running 'mysqlbinlog' on the binary log), the slave's relay log is corrupted (you can check this by running 'mysqlbinlog' on the relay log), a network problem, or a bug in the master's or slave's MySQL code. If you want to check the master's binary log or slave's relay log, you will be able to know their names by issuing 'SHOW SLAVE STATUS' on this slave.
1 row in set (0.00 sec)

 

從上面可以看到是中繼日值或是Master上的日值出問題了。

首先如果是中繼日值壞掉,那只需要找到同步的時間點,然后重新同步,這樣就可以有新的中繼日值了。如果Master上的日值壞了就麻煩了。

從經驗來看,這是中繼日值出問題了。處理方法:

需要找到同步的點。

日值為:Master_Log_File: mysql-bin.005121,Relay_Master_Log_File: mysql-bin.005121以Relay_Master_Log_File為準,Master_Log_File為參考。

日值執行時間點:

復制代碼 代碼如下:
Exec_Master_Log_Pos: 4

 

那么現在就可以:

復制代碼 代碼如下:

mysql>stop slave;
 
mysql>change master to Master_Log_File='mysql-bin.005121', Master_Log_Pos=4;
  
mysql>start slave;
 
mysql>show slave status\G;

 

進行確認。

建議:

在使用MySQL-5.1.36以下的版本的同學,請盡快升級到MySQL-5.1.40 & MySQL-5.1.37sp1

延伸 · 閱讀

精彩推薦
主站蜘蛛池模板: 亚洲国产精品福利 | 精品视频在线视频 | av影音资源| 一级毛片一级毛片一级毛片 | 日本中文字幕亚洲 | 亚洲精品一 | 成人午夜精品 | 欧美精品成人 | 欧美视频在线观看 | 亚洲精品国产剧情久久9191 | 久久久精品日本 | 成人午夜免费视频 | 日韩在线观看一区 | 色视频www在线播放国产人成 | 欧洲一区二区在线观看 | 亚洲一区中文字幕在线观看 | 免费看日本黄色片 | 天堂资源在线 | 欧美a在线 | 91精品国产综合久久福利软件 | 欧美一级欧美三级在线观看 | 狠狠操av | 毛片黄片 | 欧洲一级毛片 | 激情欧美一区二区三区中文字幕 | 啵啵羞羞影院 | 亚洲免费网站 | 麻豆.蜜桃.91.天美入口 | 欧美日韩在线一区二区三区 | 久久精品视频免费 | 欧美日韩一区二区三 | av在线电影网 | 欧美一区2区三区4区公司二百 | av毛片| 亚洲国产精品久久久久秋霞蜜臀 | 久久九| 久久国内 | 欧美成年黄网站色视频 | 久久九九 | 精品国产三级 | 国产福利91精品一区二区三区 |