Solved

Synchronise 2 databases on remote computers not a network

Posted on 2008-10-22
6
228 Views
Last Modified: 2013-11-05
Hello

I have 2 computers that I work on. I need to keep these computers in synch. I use mysql database version 5.0. What is the easiest way to keep these 2 databases in sync. what files would i need to copy from one machine to another? Is there something else i could do?

thanks
0
Comment
Question by:andieje
  • 3
6 Comments
 
LVL 7

Expert Comment

by:mattaob
ID: 22774899
are you planning on writing to both servers?

If you are you could set up master - master replication - that way you wouldn't have to worry about copying files anywhere mysql would handle it all.

http://www.howtoforge.com/mysql_master_master_replication
0
 
LVL 7

Expert Comment

by:mattaob
ID: 22774904
alternatively if you're only writing to one of them you could use master - slave replication

http://members.cox.net/midian/howto/mysqlReplication.htm
0
 

Author Comment

by:andieje
ID: 22781507
hi, i dont thinki i worded my question very well. Neither of the machines are servers, they are both simply development machines that i work on. I work on one machine in the day and one machine at night. Any changes i make to one database in the day i would like to propagate to the machine i use in the evening. The computers are not connected via a network in any way so i dont think i can use replication as shown in the links upi recommend.
thanks
0
 
LVL 7

Accepted Solution

by:
mattaob earned 500 total points
ID: 22784850
in that case use mysqldump to dump the database and then restore it
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
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…

813 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

18 Experts available now in Live!

Get 1:1 Help Now