Solved

setting up as Master-Master with an existing database

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

This guide whil teach how to setup live replication (database mirroring) on 2 servers for backup or other purposes. In our example situation we have this network schema (see atachment). We need to replicate EVERY executed SQL query on server 1 to…
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 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