Solved

Synchronise 2 databases on remote computers not a network

Posted on 2008-10-22
6
226 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
Creating and Managing Databases with phpMyAdmin in cPanel.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

895 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

12 Experts available now in Live!

Get 1:1 Help Now