Solved

multiple databases staying in real-time sync

Posted on 2006-10-23
3
281 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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks for the answer chigs.

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

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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 …
I use MySQL for many of my development projects in a Windows environment. To manage my databases (and perform queries) for years I used a tool called MySQL administrator.  This tool has since been replaced by MySQL Workbench. So I decided to m…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

728 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

13 Experts available now in Live!

Get 1:1 Help Now