mysql 复制诊断_诊断Mysql复制问题
我們的備份服務(wù)器上運(yùn)行了一個(gè)
mysql復(fù)制客戶端.自上周停電以來,它已停止復(fù)制.在此之前,它連續(xù)幾個(gè)月沒有運(yùn)行.
我已經(jīng)嘗試重新啟動(dòng)主設(shè)備和從設(shè)備,但這沒有幫助.我可以從從服務(wù)器訪問主服務(wù)器,因此網(wǎng)絡(luò)不是問題.
還有什么我可以做的來嘗試診斷問題是什么嗎?
mysql> show slave status\G;
*************************** 1. row ***************************
Slave_IO_State:
Master_Host: master
Master_User: username
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.000060
Read_Master_Log_Pos: 46277494
Relay_Log_File: mysqld-relay-bin.000348
Relay_Log_Pos: 98
Relay_Master_Log_File: mysql-bin.000060
Slave_IO_Running: No
Slave_SQL_Running: Yes
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: 46277494
Relay_Log_Space: 98
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
1 row in set (0.00 sec)
ERROR:
No query specified
mysql> show master status\G;
*************************** 1. row ***************************
File: mysql-bin.000069
Position: 851796
Binlog_Do_DB:
Binlog_Ignore_DB:
1 row in set (0.00 sec)
ERROR:
No query specified
更新:錯(cuò)誤進(jìn)入daemon.log,而不是mysql.err,這可以解釋為什么我找不到它們.問題似乎是主人說日志不可用,這沒有多大意義,因?yàn)橹魅罩救匀豢梢允褂迷撊罩?和前一個(gè)日志).
090710 9:17:35 [Note] Slave SQL thread initialized, starting replication in log 'mysql-bin.000060' at position 46277494, relay log './mysqld-relay-bin.000350' position: 98
090710 9:17:35 [Note] Slave I/O thread: connected to master 'username@master:3306', replication started in log 'mysql-bin.000060' at position 46277494
090710 9:17:35 [ERROR] Error reading packet from server: Client requested master to start replication from impossible position ( server_errno=1236)
090710 9:17:35 [ERROR] Got fatal error 1236: 'Client requested master to start replication from impossible position' from master when reading data from binary log
090710 9:17:35 [Note] Slave I/O thread exiting, read up to log 'mysql-bin.000060', position 46277494
總結(jié)
以上是生活随笔為你收集整理的mysql 复制诊断_诊断Mysql复制问题的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python 异常函数调用栈_Pytho
- 下一篇: linux cmake编译源码,linu