6 messages in com.mysql.lists.win32Re: synchronizing 2 mysql servers
FromSent OnAttachments
Javier Revilla18 Oct 2003 01:18 
miguel solorzano18 Oct 2003 07:55 
Ferhat BINGOL18 Oct 2003 08:01 
Ignatius Reilly18 Oct 2003 08:03 
Petr Vileta18 Oct 2003 08:42 
Javier Revilla18 Oct 2003 09:59 
Subject:Re: synchronizing 2 mysql servers
From:Petr Vileta (pe@practisoft.cz)
Date:10/18/2003 08:42:19 AM
List:com.mysql.lists.win32

I am looking for some information about synchronizing 2 mysql databases. The connection is internet and we would like to update any change on the far away one with our local server every week.

You can do

USE your_database; BACKUP TABLES table1,table2... TO 'some_path_on_local_disk';

on source server, send all *.frm and *.MYD as a binary file to target computer into some afficient location (eg. /var/temp on Linux or c:\widnows\temp on Windows) and do

USE your_database; DROP TABLES table1,table2...; RESTORE TABLES table1,table2... FROM 'some_path_on_local_disk';

Other way is to buy SQLyog SW on www.webyog.com ;-) This SW have a tool for synchronisation databases.