Solved

setting up as Master-Master with an existing database

Posted on 2011-02-11
1
495 Views
Last Modified: 2012-05-11
hello,
I have been looking at trying to set up MASTER<->MASTER REPLICATION
the part that concerns me is  the settings:
auto_increment_increment = 10
auto_increment_offset = 1

I am starting with a pretty big exisiting DB where 90% of the tables have auto_increment ID's
is this going to cause a problem?

Thanks
randy
0
Comment
Question by:paries
1 Comment
 
LVL 20

Accepted Solution

by:
Muhammad Wasif earned 500 total points
ID: 34877365
To avoid AUTO_INCREMENT conflicts it will be sufficient.

In server1 you need to set
auto_increment_increment = 10
auto_increment_offset = 1

And in the 2nd server
auto_increment_increment = 10
auto_increment_offset = 2

The problem may arise if you have other unique columns i.e. email address, or usename. In such cases, you need to solve it on you application level or some other rule.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
Introduction In this article, I will by showing a nice little trick for MySQL similar to that of my previous EE Article for SQLite (http://www.sqlite.org/), A SQLite Tidbit: Quick Numbers Table Generation (http://www.experts-exchange.com/A_3570.htm…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now