Solved

setting up as Master-Master with an existing database

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

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…
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…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

810 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