MySQL主從複製報錯:Got fatal error 1236 from master when reading data from
Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file name in binary log index file'
備庫檢查報錯:
(root@localhost) [sys]> show slave status \G; *************************** 1. row *************************** Slave_IO_State: Master_Host: 127.0.0.1 Master_User: repl Master_Port: 3316 Connect_Retry: 60 Master_Log_File: rhel6lhr-bin.000003 Read_Master_Log_Pos: 154 Relay_Log_File: rhel6lhr-relay-bin.000001 Relay_Log_Pos: 4 Relay_Master_Log_File: rhel6lhr-bin.000003 Slave_IO_Running: No 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: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 154 Relay_Log_Space: 154 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: 1236 Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file name in binary log index file' Last_SQL_Errno: 0 Last_SQL_Error: Replicate_Ignore_Server_Ids: Master_Server_Id: 57193316 Master_UUID: 1dc4b050-ac4d-11e9-ab99-000c29d51a2a Master_Info_File: /usr/local/mysql57/mysql5719/data57193317/master.info SQL_Delay: 0 SQL_Remaining_Delay: NULL Slave_SQL_Running_State: Master_Retry_Count: 86400 Master_Bind: Last_IO_Error_Timestamp: 190722 15:06:09 Last_SQL_Error_Timestamp: Master_SSL_Crl: Master_SSL_Crlpath: Retrieved_Gtid_Set: Executed_Gtid_Set: Auto_Position: 0 Replicate_Rewrite_DB: Channel_Name: Master_TLS_Version:
解決:
在 source 那邊,執行:
flush logs; show master status;File
在 target 端,執行:
stop slave ; CHANGE MASTER TO MASTER_LOG_FILE='testdbbinlog.000008',MASTER_LOG_POS=107; start slave ; show slave status \G
一切正常。
【MySQL】Got fatal error 1236原因和解決方法
About Me
........................................................................................................................ ● 本文作者:小麥苗,部分內容整理自網路,若有侵權請聯絡小麥苗刪除 ● 本文在itpub、部落格園、CSDN和個人微 信公眾號( xiaomaimiaolhr )上有同步更新 ● 本文itpub地址: http://blog.itpub.net/26736162 ● 本文部落格園地址: http://www.cnblogs.com/lhrbest ● 本文CSDN地址: https://blog.csdn.net/lihuarongaini ● 本文pdf版、個人簡介及小麥苗雲盤地址: http://blog.itpub.net/26736162/viewspace-1624453/ ● 資料庫筆試面試題庫及解答: http://blog.itpub.net/26736162/viewspace-2134706/ ● DBA寶典今日頭條號地址: ........................................................................................................................ ● QQ群號: 230161599 (滿) 、618766405 ● 微 信群:可加我微 信,我拉大家進群,非誠勿擾 ● 聯絡我請加QQ好友 ( 646634621 ) ,註明新增緣由 ● 於 2019-07-01 06:00 ~ 2019-07-31 24:00 在西安完成 ● 最新修改時間:2019-07-01 06:00 ~ 2019-07-31 24:00 ● 文章內容來源於小麥苗的學習筆記,部分整理自網路,若有侵權或不當之處還請諒解 ● 版權所有,歡迎分享本文,轉載請保留出處 ........................................................................................................................ ● 小麥苗的微店 : ● 小麥苗出版的資料庫類叢書 : http://blog.itpub.net/26736162/viewspace-2142121/ ● 小麥苗OCP、OCM、高可用網路班 : http://blog.itpub.net/26736162/viewspace-2148098/ ● 小麥苗騰訊課堂主頁 : https://lhr.ke.qq.com/ ........................................................................................................................ 使用 微 信客戶端 掃描下面的二維碼來關注小麥苗的微 信公眾號( xiaomaimiaolhr )及QQ群(DBA寶典)、新增小麥苗微 信, 學習最實用的資料庫技術。
........................................................................................................................ |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26736162/viewspace-2651325/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- MySQL複製環境Slave報錯"Got fatal error 1236 from master when reading data"MySqlGoErrorAST
- Got fatal error 1236 from master when reading data from binary logGoErrorAST
- MySQL案例09:Last_IO_Error: Got fatal error 1236 from master when reading data from binary logMySqlASTErrorGo
- Percona MySQL 5.6 主主複製環境報錯"Got fatal error 1236 from master.."MySqlGoErrorAST
- mysql主從同步失敗Last_IO_Error: Got fatal error 1236 from master解決方法MySql主從同步ASTErrorGo
- 【Mysql】Slave_IO_Running: No---Got fatal error 1236 from masterMySqlGoErrorAST
- 主庫異常當機---從庫複製報fatal error 1236Error
- MySQL 5.7複製報錯Client requested master to start replication from impossibleMySqlclientAST
- 【MySQL】Got fatal error 1236原因和解決方法MySqlGoError
- Last_IO_Error: Got fatal error 1236ASTErrorGo
- MySQL主從同步報Client requested master to start replication from positionMySql主從同步clientAST
- MySQL主從同步報error 1236MySql主從同步Error
- 【MySql】MySQL Replication Fatal Error 1236MySqlError
- MySQL Replication Fatal Error 1236MySqlError
- MySQL ERROR Got an error reading communication packetsMySqlErrorGo
- Got error 28 from storage engine 解決方法GoError
- MySQL報錯Slave: received end packet from server, apparent master shutdownMySqlServerAPPAST
- 故障案例:主從同步報錯Fatal error: The slave I/O thread stops because master and slave have equal MySQL server主從同步ErrorthreadASTMySqlServer
- MySQL 5.7.17 安裝報錯SSL error: Unable to get private key fromMySqlError
- Mysqldump實現mysql的master-slave主從複製MySqlAST
- MySQL 5.5.x 配置Master-Slave主從複製MySqlAST
- MySQL主從複製與主主複製MySql
- MySQL 5.7 多主複製報錯Coordinator stopped because there were error(s)MySqlError
- MySQL的主從複製與MySQL的主主複製MySql
- mysql5.7主從複製,主主複製MySql
- MySQL主從複製、半同步複製和主主複製MySql
- Innobackupex實現mysql線上搭建master-slave主從複製MySqlAST
- mysql複製--主從複製配置MySql
- MySQL 主從複製MySql
- 【MySql】主從複製MySql
- MySQL主從複製MySql
- MySQL主從複製、半同步複製和主主複製概述MySql
- 主庫reset master清理binlog日誌到主從複製錯誤AST
- MySQL 主從複製錯誤1837MySql
- Mysql主機斷電導致複製出錯 server_errno=1236MySqlServer
- MySQL主從複製_複製過濾MySql
- Goldengate複製程式錯誤Fatal error executing DDLGoError
- MySQL的主從複製、半同步複製、主主複製詳解MySql