2010-12-13 82 views
3

MySQL 5.1中复制停止没有错误消息MySQL的复制停止,不错误

"SHOW SLAVE STATUS\G" 
> *************************** 1. row *************************** 
>    Slave_IO_State: Waiting for master to send event 
>     Master_Host: xxx 
>     Master_User: repl 
>     Master_Port: 3306 
>     Connect_Retry: 60 
>    Master_Log_File: mysql-bin.000366 
>   Read_Master_Log_Pos: 6491726 
>    Relay_Log_File: mysql-relay-bin.000003 
>     Relay_Log_Pos: 75183691 
>   Relay_Master_Log_File: mysql-bin.000351 
>    Slave_IO_Running: Yes 
>    Slave_SQL_Running: Yes 
>    Replicate_Do_DB: xxx 
>   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: 75698643 
>    Relay_Log_Space: 1624786550 
>    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: 6222 
> Master_SSL_Verify_Server_Cert: No 
>     Last_IO_Errno: 0 
>     Last_IO_Error: 
>    Last_SQL_Errno: 0 
>    Last_SQL_Error: 

上主最后二进制日志是的mysql-bin.000365

我应该怎么做,读来解决这个麻烦?

+0

两个'Slave_IO_Running:Yes'和'Slave_SQL_Running:Yes'是什么让你觉得复制没有运行? – Danosaure 2010-12-13 10:26:38

+0

你必须重新配置从主你的奴隶,并重新装载数据,作为日志斌是奴隶和主人之间的不同,它可能**不**能赶上师傅了 – ajreal 2010-12-13 13:49:12

+0

的Seconds_Behind_Master:6222值越大 - 来自master和Relay_Master_Log_File的52小时:mysql-bin.000351不是最后一个binlog/Last是000666. – user274101 2010-12-14 05:40:02

回答

0

您需要重新配置MySQL从站,因为您的从站正在显示Master_Log_File: mysql-bin.000366但是您要说的是您的主站位于mysql-bin.000365。这就是为什么你的奴隶无法从主同步。重新配置从请按照下列setps here