Solved

multiple databases staying in real-time sync

Posted on 2006-10-23
3
289 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Introduction In this article, I will by showing a nice little trick for MySQL similar to that of my previous EE Article for SQLite (http://www.sqlite.org/), A SQLite Tidbit: Quick Numbers Table Generation (http://www.experts-exchange.com/A_3570.htm…
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 …
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

839 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