MySQL 5.6修復從庫複製時報錯'ERROR 1872 (HY000): Slave failed to initialize'
MySQL 5.6修復從庫複製時報錯
mysql> start slave;
ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository
報錯原因:
從庫已經存在之前的relay log
解決方法:
使用RESET SLAVE語句,清除master資訊和relay日誌的資訊,刪除所有的relay日誌檔案,並開始建立一個全新的中繼日誌
mysql> stop slave;
mysql> reset slave;
mysql> start slave;
ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository
報錯原因:
從庫已經存在之前的relay log
解決方法:
使用RESET SLAVE語句,清除master資訊和relay日誌的資訊,刪除所有的relay日誌檔案,並開始建立一個全新的中繼日誌
mysql> stop slave;
mysql> reset slave;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26506993/viewspace-2134618/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【Mysql】ERROR 1872 (HY000): Slave failed to initialize relay log infoMySqlErrorAI
- mysql 8 報錯 ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repositoryMySqlErrorAIStruct
- 【MySQL】主從GTID複製修復MySql
- Mysql5.6主從複製MySql
- MySQL GTID複製錯誤修復演示MySql
- MySQL 5.7.9多源複製報錯修復MySql
- MySQL 5.6複製報錯Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND;MySqlError
- MySQL5.6:mysql_secure_installation 報錯ERROR 2002 (HY000)MySqlError
- mysql5.6.xGTID主從複製配置MySql
- mysql master-slave複製錯誤[解決事例]MySqlAST
- MySQL 5.6初始化資料庫時報錯FATAL ERROR: Could not find ./bin/my_print_defaultsMySql資料庫Error
- Slave failed to initialize relay log info structure from the repositoryAIStruct
- Mysql 5.6庫級表級複製的搭建MySql
- Mysql5.6主從複製-基於binlogMySql
- Mysqldump實現mysql的master-slave主從複製MySqlAST
- MySQL 5.5.x 配置Master-Slave主從複製MySqlAST
- 利用mysql slave 修復master MyISAM tableMySqlAST
- MySQL建立使用者報錯 ERROR 1396 (HY000): Operation CREATE USER failed for 'afei'@'%'MySqlErrorAI
- MySQL複製跳過錯誤--slave_skip_errors、sql_slave_skip_counter、slave_exec_modeMySqlError
- MySQL主從複製配置引數 -- logs-slave-updatesMySql
- Innobackupex實現mysql線上搭建master-slave主從複製MySqlAST
- MySQL5.6複製原理圖MySql
- mysql5.6複製新特性MySql
- Percona MySQL 5.6 語句加鎖報錯"ERROR 1665 (HY000): Cannot execute statement"MySqlError
- MySQL複製環境Slave報錯"Got fatal error 1236 from master when reading data"MySqlGoErrorAST
- 【MySQL】5.6/5.7並行複製bug導致的故障 ERROR 1755/1756MySql並行Error
- LOGIN:ERROR-Failed to initialize policy manager(轉)ErrorAI
- 【MySql】複製出現Slave_SQL_Running: No 錯誤解決MySql
- MySQL主從複製中的“show slave status”詳細含義MySql
- MySQL GTID複製中斷修復過程MySql
- 【MySQL】複製1594錯誤(從庫relaylog損壞)MySql
- MySQL 5.7從庫報錯exceeds of slave_pending_jobs_size_max. Error_code: 1864MySqlError
- MySQL複製命令slave被REPLICA命令取代MySql
- Percona MySQL 5.6 主主複製環境報錯"Got fatal error 1236 from master.."MySqlGoErrorAST
- MySQL 授權時報錯 ERROR 1819MySqlError
- MySQL 5.6 建立GTID主從複製 (GTID-based Replication)MySql
- Xtrabackup恢復時報錯'Error: datadir must be specified'Error
- MySQL錯誤修復:Table xx is marked as crashed and last (automatic?) repair failedMySqlASTAI