Solved

multiple databases staying in real-time sync

Posted on 2006-10-23
3
295 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

I have been using r1soft Continuous Data Protection (http://www.r1soft.com/linux-cdp/) for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

724 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