MySQL Forums
Forum List  »  Replication

Re: update slave after failover
Posted by: Rick James
Date: November 14, 2010 07:15PM

SLAVE START;

Replication is designed to recover from network failures. Even the SLAVE START should not be necessary, but perhaps it gave up after some number of retries.

SHOW SLAVE STATUS \G
will show more info; let's see that.

Replication works like this:
1. The Master executes a write statement.
2. The Master writes that statement to its binlog (a rotating set of files).
3. The statement is also sent to the Slave(s).
4. The Slave (assuming the network is up, and the Slave is up, etc) write the statement to its "relay log" (a different set of files).
5. The Slave reads from the relay log and executes the statements.

If the network goes down, #3 is delayed, not lost. Statements remain in the binlog(s) until they are purged, which is either manual, or configured via a setting. I like to keep at least 7 days' worth.

Options: ReplyQuote


Subject
Views
Written By
Posted
2373
November 12, 2010 12:15AM
929
November 12, 2010 09:17AM
949
November 14, 2010 05:30PM
Re: update slave after failover
1011
November 14, 2010 07:15PM


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.