MySQL Forums
Forum List  »  Replication

Re: Replicating server has died
Posted by: Rick James
Date: April 19, 2009 12:09AM

1. Read the docs.
2. Reread the docs.

Here are some of the issues...
By "drive failure", I assume you have lost all the data on that machine.
And I assume you have never stopped the dead server and dumped the file system. (If you had, there might be a way to load that, then play catchup with replication.)

Probably this is what you have to do:
1. Stop mysql on the good machine.
2. Copy the mysql directory to the new machine.
3. Start mysql on both machines, but be sure replication is turned off on the new one.
4. CHANGE MASTER (on new) to point to the beginning of the binlog that started after step 3.
5. May need some kind of CHANGE MASTER on the good machine.

Caution! Those instructions are approximate.

Options: ReplyQuote


Subject
Views
Written By
Posted
3710
April 15, 2009 01:05PM
Re: Replicating server has died
1953
April 19, 2009 12:09AM


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.