• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 245
  • Last Modified:

Synchronise 2 databases on remote computers not a network

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
andieje
Asked:
andieje
  • 3
1 Solution
 
mattaobCommented:
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
 
mattaobCommented:
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
 
andiejeAuthor Commented:
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
 
mattaobCommented:
in that case use mysqldump to dump the database and then restore it
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now