MySQL Forums
Forum List  »  Backup

Re: Advice on backing up a 2 master system
Posted by: Rick James
Date: July 03, 2012 02:03PM

> so even if the same data is written by two services simultaneously, the two MYSQL servers will assign different unique ID #'s.

That takes care of AUTO_INCREMENTs, but not other UNIQUE keys.

> And I have room to add 7 more...

7 more what?

> cause I think 'auto-increment-offset = 0' behaves strangely.

So, do not use 0.

> Going along with the initial question however, is it possible to shutdown the tcp stack in MYSQL while its running, so that MYSQLDUMP can perform its task through a local socket, and then turn the tcp stack back on when MYSQLDUMP finished? or does it require a restart after applying the variable to ther server?

(I don't know the answer to that specific question.) Why should you care? SLAVE STOP; or STOP SLAVE SQLTHREAD; will stop the writes that are arriving from the other Master. After START SLAVE, the writes will be applied.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Advice on backing up a 2 master system
1487
July 03, 2012 02:03PM


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.