MySQL Forums
Forum List  »  Replication

Re: Problem when I rename the slave and master servers?
Posted by: Neil Davis
Date: February 01, 2008 11:44AM

I had this same issue after someone destroyed my slave server. I rebuilt it, loaded the db's in from the last good snapshot.

I got this error when trying to set the slave to the right log and position to start from.

This solution also worked in my situation. Here's what I did:

stop slave;
reset slave;
CHANGE MASTER TO MASTER_LOG_FILE='log-bin.000213', MASTER_LOG_POS=205996549;//place of last good snapshot
start slave;

Worked like a champion. Without the reset slave; I got the same error. Just thought I'd add to this thread and show another situation where you need to do this. Thx Peter~!

-Neil

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Problem when I rename the slave and master servers?
2856
February 01, 2008 11:44AM


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.