Re: Restarting Slave After Master Crash
i guess this thread seems dead but i ran into the same problem and this is how i fixed it. It seems that the MYSQL just needs the reference/starting point in the log so it can resume replication.
Try this
STOP SLAVE
FLUSH TABLES WITH READ LOCK;
SHOW MASTER STATUS (record these valuse it will state name of file and position)
UNLOCKTABLES;
CHANGE MASTER TO MASTER_LOG_FILE='recorded_log_file_name',
CHANGE MASTER TO MASTER_LOG_POS=recorded_log_position;
START SLAVE
you may still get an error message at first in the logs but replication should resume
Subject
Views
Written By
Posted
11512
June 05, 2006 04:42PM
8801
June 05, 2006 07:31PM
14634
June 05, 2006 07:49PM
9181
June 06, 2006 06:47AM
8356
June 06, 2006 08:20AM
Re: Restarting Slave After Master Crash
10325
January 12, 2007 01:02PM
6205
October 19, 2008 03:21PM
5611
October 21, 2008 09:26PM
5354
October 28, 2008 06:21AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.