Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
MySQL synchronize - SQLyog
Old 02-03-2009, 07:46 AM MySQL synchronize - SQLyog
Junior Talker

Posts: 2
Trades: 0
Hi, I need some help here. We have application that running online, that everybody can access and add new customer data there ...

Now because of one of our branch office is located in remote area with limited internet access, we are planning to develop a local server there, with the web application installed on the local web server.

We are trying to use SQLyog to synchronize 2 of the databases ( one in our public server and one in local server in remote area )

The problem is :
becase there are 2 database with open access, when we synchronize the data ... the auto increment table id will be double and it will cause the system not running well ...

Is there any MySQL Database solution that can help us synchronize 2 databse with same name and auto increment table PKEY, with no collision ?

is there any synchronizer software better than sqlyog ?
eddyyansen is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-19-2009, 09:16 AM Re: MySQL synchronize - SQLyog
Junior Talker

Posts: 1
Name: Peter Laursen
Trades: 0
If you have problems with SQLyog why do you not visit our Forums (www.webyog.com/forums) or use our support ticket system?

Anyway this problem "the auto increment table id will be double and it will cause the system not running well ..." can be solved in at least 3 different ways.

1) Have a two-column PK where one column is an autoincrement integer and the other a constant different on either server (this I consider the most simple aand most reliable solution)

2) Use autoincrement_increment and atoincrement_offset in server config so that one server will generate even numbers and the other odd numbers

3) Start incrementing from 1 on one server and a hig number (like '10000000') on the other

Regards
Peter Laursen
Webyog
peterlaursen is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to MySQL synchronize - SQLyog
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09553 seconds with 12 queries