Solved

setting up as Master-Master with an existing database

Posted on 2011-02-11
1
496 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

895 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

12 Experts available now in Live!

Get 1:1 Help Now