Solved

multiple databases staying in real-time sync

Posted on 2006-10-23
3
286 Views
Last Modified: 2006-11-18
Hello Experts,

   I'm looking for opinions/suggestions on a project I'm working on.  I have four stations/PC's setup which will be used to submit user data from a form to a mysql database housed locally on each station.  The reason for housing locally is each station is independent of each other if for some reason hardware/software failure occurs.  My problem is:  I need to keep all submitted data updated on all 4 stations so that I do not get repeat data entered from two different workstations.  I'm thinking some type of automated sync, or sync every second, or sync per transaction.  Any opinions/suggestions on the best way to approach this is greatly appreciated.

Thanks
0
Comment
Question by:itwanlan
3 Comments
 
LVL 22

Expert Comment

by:NovaDenizen
ID: 17796982
Your requirements are somewhat contradictory.  You want things to stay synchronized, but you also want them to keep working even when communications go down.  I think you need to decide which of those requirements is more important.  

If avoidance of inconsistency is more important, then you need a single central server.  If your communications go down to the central server, you can't make any changes.  You could use replication to maintain a local read-only copy of the central server so you could still have access to an old copy of the data when communications are down.

If it's more important to let people make changes while communications is down, then you have to maintain 4 separate local databases, and you need a piece of software that can look at the timestamps on the most recent records in each database and fix any inconstencies that are detected, so consistency is eventually restored.  Consistency is something that is continually lost and regained.  
0
 
LVL 6

Accepted Solution

by:
chigs20 earned 250 total points
ID: 17796994
What you're looking for is a Master/Master setup (Each server acts as a master and a slave).  Here is an article explaining it and how to:
http://dev.mysql.com/tech-resources/articles/advanced-mysql-replication.html
0
 

Author Comment

by:itwanlan
ID: 17815657
Thanks for the answer chigs.

I think this will be exactly what we are looking for.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Creating and Managing Databases with phpMyAdmin in cPanel.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
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…

776 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