国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > MySQL > 正文

一次mysql slave故障的解決過程

2024-07-24 13:00:19
字體:
來源:轉載
供稿:網友

MySQL> show slave status/G 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. Error_code: 1594 看樣子,應該由于網絡原因 slave relay log損壞了

查看 mysql 日志: 170306 12:34:08 [Note] Slave SQL thread initialized, starting replication in log ‘mysql-bin.000033’ at position 77270703, relay log ‘./HK3ASERVER-relay-bin.066281’ position: 10604437 170306 12:34:08 [ERROR] Error in Log_event::read_log_event(): ‘read error’, data_len: 67, event_type: 19 170306 12:34:08 [ERROR] Error reading relay log event: slave SQL thread aborted because of I/O error 170306 12:34:08 [ERROR] Slave SQL: 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. Error_code: 1594 170306 12:34:08 [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.000033’ position 77270703

mysql> stop slave;

mysql> change master to Master_Log_File=’mysql-bin.000033’, Master_Log_Pos=77270703; This Operation cannot be performed with a running slave; run STOP SLAVE first

mysql> show slave status/G 發現IO_THREAD線程一直存在停不掉

最后,將mysql/data目錄下的 master.info 備走,重新啟動 mysql

mysql> show slave status/G 發現 slave 已徹底停掉了

mysql> reset slave; mysql> change master to Master_Log_File=’mysql-bin.000033’, Master_Log_Pos=77270703; mysql> start slave; Slave_IO_Running: Yes Slave_SQL_Running: Yes

slave 恢復正常


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 建昌县| 江都市| 铁力市| 南川市| 乐业县| 福安市| 永福县| 保定市| 南康市| 廉江市| 张家川| 佛教| 高淳县| 尚志市| 固安县| 乌鲁木齐县| 玉田县| 探索| 泸州市| 通州区| 东方市| 永平县| 嘉禾县| 濮阳县| 房山区| 玉屏| 中阳县| 乐亭县| 洪雅县| 花垣县| 常德市| 济宁市| 松桃| 鹤峰县| 佳木斯市| 蓬溪县| 大兴区| 黄骅市| 吉安县| 抚顺市| 肇源县|