|
|||||||||||
|
Re: Slave just stops....
From: Jesse <jlc(at)msdlg.com>
Date: Tue Oct 02 2007 - 09:24:31 EDT
Yes, I caught that. However, the reason that the foreign key error occurred was because replication simply stopped at some point for a (currently) unexplained reason, causing certain records not to be added, so when I re-started replication, it failed because it tried to add records who's foreign key's were missing. I almost decided not to post the results of show slave status after my re-start, because I figured it would cause confusion, and it has. However, here's the situation. The same exact thing has happened again this morning. I reset the slave last night. I restored all of the data, and re-started the slave. Everything appeared to be fine. I did a few things, which seemed to be working fine. This morning, I checked, and I find the following error in the Windows Event Log: Slave SQL thread exiting, replication stopped in log 'mysql-bin.000001' at position 199
This occurred at about 7:51 this morning. I did a Show Slave Status, and
here it is:
*************************** 1. row ***************************Slave_IO_State: Waiting for master to send event Master_Host: webserver Master_User: Replication Master_Port: 3306 Connect_Retry: 60 Master_Log_File: mysql-bin.000001 Read_Master_Log_Pos: 1376264 Relay_Log_File: dlgsrv-relay-bin.000012 Relay_Log_Pos: 434 Relay_Master_Log_File: mysql-bin.000001 Slave_IO_Running: Yes 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: 199 Relay_Log_Space: 69323 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) The only thing I question is "Slave_SQL_Running: No". Should this be this way, or should the SQL be running? If it should, then what stopped it? I checked the .err file, and the last error in there was the one I listed above. Another confusing thing about this is that it says that it exited at position 199. When I started replication last night, I started it position 1272859.
Here are a few more entries from the log that indicate errors, but it didn't
seem to stop it until this morning:
These could have occurred at about the time that I re-started the slave, however, I checked this file immediately after re-starting the slave last night, and nothing was wrong, so this happened shortly after re-starting it. Could these be the problem? And if so, what are the errors, and how to I fix them?
Thanks,
-- MySQL Replication Mailing List For list archives: http://lists.mysql.com/replication To unsubscribe: http://lists.mysql.com/replication?unsub=lists@pantek.comReceived on Tue Oct 2 09:24:56 2007 This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 10:14:25 EDT |
||||||||||
|
|||||||||||