[英]percona replication error after shutting down the slave
我們關閉了從服務器(在13:47),此后從服務器不再跟隨主服務器。 我擁有所有數據,直到從屬服務器關閉為止。
這是奴隸:
mysql> show slave status \G <br>
*************************** 1. row ***************************<br>
Master_Host: 192.168.0.56<br>
Master_Log_File: mysql-bin.000226<br>
Read_Master_Log_Pos: 695831819<br>
Relay_Log_File: mysql-relay-bin.000001<br>
Relay_Log_Pos: 4<br>
Relay_Master_Log_File: mysql-bin.000226<br>
Slave_IO_Running: No<br>
Slave_SQL_Running: Yes<br>
Exec_Master_Log_Pos: 695831819<br>
Relay_Log_Space: 120<br>
Last_IO_Errno: 1236<br>
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'<br>
Last_IO_Error_Timestamp: 150709 14:26:07<br>
似乎奴隸收到了日志。
實際上,我們具有“帶有中繼從站的主站”復制,並且從站本身充當另一個從站的主站。
您的奴隸關閉了多長時間? 此錯誤信息:
Could not find first log file name in binary log index file
表示從服務器向主服務器詢問二進制日志文件mysql-bin.000226
,而主服務器回答“抱歉,我不再知道該文件了。”
在您的主服務器上鍵入以下命令: SHOW BINARY LOGS;
您是否看到從站正在請求的日志文件? 如果沒有,您看到其他人,則有人或某些腳本將其刪除。
無論如何,您要么需要將該二進制日志還原到主數據庫(從備份),要么需要使用Percona XtraBackup從主數據庫重新初始化從屬服務器。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.