一区二区三区在线-一区二区三区亚洲视频-一区二区三区亚洲-一区二区三区午夜-一区二区三区四区在线视频-一区二区三区四区在线免费观看

服務(wù)器之家:專(zhuān)注于服務(wù)器技術(shù)及軟件下載分享
分類(lèi)導(dǎo)航

Mysql|Sql Server|Oracle|Redis|MongoDB|PostgreSQL|Sqlite|DB2|mariadb|Access|數(shù)據(jù)庫(kù)技術(shù)|

服務(wù)器之家 - 數(shù)據(jù)庫(kù) - Mysql - MySQL5.1主從同步出現(xiàn)Relay log read failure錯(cuò)誤解決方法

MySQL5.1主從同步出現(xiàn)Relay log read failure錯(cuò)誤解決方法

2020-04-13 13:22MYSQL教程網(wǎng) Mysql

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

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

復(fù)制代碼 代碼如下:

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上的日值出問(wèn)題了。

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

從經(jīng)驗(yàn)來(lái)看,這是中繼日值出問(wèn)題了。處理方法:

需要找到同步的點(diǎn)。

日值為:Master_Log_File: mysql-bin.005121,Relay_Master_Log_File: mysql-bin.005121以Relay_Master_Log_File為準(zhǔn),Master_Log_File為參考。

日值執(zhí)行時(shí)間點(diǎn):

復(fù)制代碼 代碼如下:
Exec_Master_Log_Pos: 4

 

那么現(xiàn)在就可以:

復(fù)制代碼 代碼如下:

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;

 

進(jìn)行確認(rèn)。

建議:

在使用MySQL-5.1.36以下的版本的同學(xué),請(qǐng)盡快升級(jí)到MySQL-5.1.40 & MySQL-5.1.37sp1

延伸 · 閱讀

精彩推薦
主站蜘蛛池模板: 日本在线精品视频 | 日本在线精品视频 | 九九精品视频在线观看九九 | 人人揉揉香蕉 | 东北恋哥在线播放免费播放 | 亚洲欧美另类在线观看 | 99在线视频精品费观看视 | 香蕉97超级碰碰碰免费公 | 齐天大性之七仙女欲春迅雷链接 | 91传媒制片厂果冻有限公司 | 日本高清在线看免费观看 | 99久久免费看精品国产一区 | 日韩欧美国产一区 | 亚洲国产在线视频中文字 | 欧美日韩精品免费一区二区三区 | 久久精品久久久 | 国产成+人+综合+欧美 亚洲 | 午夜性色一区二区三区不卡视频 | 精品视频在线免费看 | 日本免费精品视频 | 欧美在线观看一区二区三 | 国产最新精品视频 | 欧美艳星julnaann | 国产一区私人高清影院 | 亚洲天堂男人天堂 | 美女尿口照片 | 99精品国产在现线免费 | 99在线免费观看 | 国产在线视频欧美亚综合 | 美女机机对机机的视频(免费) | 男男双性生子产乳高辣h | 国产精品高清一区二区三区不卡 | 黑人女性猛交xxxxxⅹxx | 免费免费啪视频在线观播放 | 好大好爽好涨太深了小喜 | 999任你躁在线精品免费不卡 | 扒开老师两片湿漉的肉 | 日本高清在线播放 | 按摩院已婚妇女中文字幕 | 久久www免费人成高清 | 韩国甜性涩爱免费观看 |