WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Database Discussion Forum This is the place to find help resolving those nagging questions you have about implementing and using all kinds of databases. Need help writing a query? Need an opinion on Oracle? Post here!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-21-2004, 11:09 AM
santos007 santos007 is offline
WebProWorld New Member
 

Join Date: Jul 2003
Location: Spain
Posts: 7
santos007 RepRank 0
Default MySQL db synchronization

We have developped an application for Real Estate management for a client. Everything runs fine, however, the client wants, now, before to pay us the balance due, that the application could run locally and be synchronized automatically. We have developped the application using PHP and MySQL to be run in Internet. We are planning to use locally PHPTRIAD, it works fine, however, we are experiencing problems with synchronization.
Could anyone offers us a suggestion?
Reply With Quote
  #2 (permalink)  
Old 08-21-2004, 09:10 PM
ronniethedodger's Avatar
ronniethedodger ronniethedodger is offline
WebProWorld 1,000+ Club
 

Join Date: Aug 2003
Location: Central US
Posts: 1,576
ronniethedodger RepRank 0
Default

You said it works fine, but you are experiencing problems. What problems?

Also see this topic. The discussion deals with a lot of the questions you are asking.
__________________
Ronnie T. Dodger
Web Design Forum-Web Design & Development News
Reply With Quote
  #3 (permalink)  
Old 08-22-2004, 05:27 AM
santos007 santos007 is offline
WebProWorld New Member
 

Join Date: Jul 2003
Location: Spain
Posts: 7
santos007 RepRank 0
Default MySQL synchronization

It works fine on Internet, however, my client wants to work locally and then to have both DB synchronized, the one in Internet and the local one and we are having difficulties in this synchronization.
Reply With Quote
  #4 (permalink)  
Old 08-22-2004, 05:51 AM
ronniethedodger's Avatar
ronniethedodger ronniethedodger is offline
WebProWorld 1,000+ Club
 

Join Date: Aug 2003
Location: Central US
Posts: 1,576
ronniethedodger RepRank 0
Default

Try SQLyog a free MySQL database synchronizer. It is described in detail here in an article.
__________________
Ronnie T. Dodger
Web Design Forum-Web Design & Development News
Reply With Quote
  #5 (permalink)  
Old 08-22-2004, 09:52 AM
cyanide cyanide is offline
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: Toronto, Canada
Posts: 2,193
cyanide RepRank 0
Default

Quote:
Originally Posted by ronniethedodger
Try SQLyog a free MySQL database synchronizer. It is described in detail here in an article.
Awesome post there ronnie.

I always have 2 copies of a script/database (local and live). It's a pain in the arse making sure they're the same... export, save as... if it's big lots of waiting, then ofcourse uploading ugg!

2 - thumbs up

Have you actually used it ?
__________________
|
Web Hosting Guru
| Need Help For Your Forum?
Reply With Quote
  #6 (permalink)  
Old 08-22-2004, 03:23 PM
mushroom's Avatar
mushroom mushroom is offline
WebProWorld Veteran
 

Join Date: Feb 2004
Location: Queen Charlotte B. C. Canada
Posts: 351
mushroom RepRank 0
Default

Quote:
Originally Posted by ronniethedodger
Try SQLyog a free MySQL database synchronizer. It is described in detail here in an article.
Not Free ( 30 trial )
Quote:
1-9 licenses
$49/license
10-49 licenses
$39/license
Site License **
$695

Site License **
( Educational / Non Profit Organizations )

$395
__________________
Irony: That for most people the most "trusted" web site on the planet is for a company the has been convicted of criminal activity.

Both Security and SuSe start with "S". www.oldslides.com
Reply With Quote
  #7 (permalink)  
Old 08-22-2004, 04:18 PM
cyanide cyanide is offline
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: Toronto, Canada
Posts: 2,193
cyanide RepRank 0
Default

haha yes, that's true mushroom.

just found that out
__________________
|
Web Hosting Guru
| Need Help For Your Forum?
Reply With Quote
  #8 (permalink)  
Old 08-22-2004, 10:02 PM
ronniethedodger's Avatar
ronniethedodger ronniethedodger is offline
WebProWorld 1,000+ Club
 

Join Date: Aug 2003
Location: Central US
Posts: 1,576
ronniethedodger RepRank 0
Default

I was going off of the article which is dated. The article was dated Feb-14-2003. Obviously there have been some changes. =(

No Cynanide ... I have not tried it. But it appears to be well recieved.

Try this instead SQLyog Job Agent v2.0 which is a free according to their FAQ.

Quote:
New! Q. I want to bring data of two database located in different hosts in Sync with each other. How can I do it in SQLyog ?

A. SQLyog Job Agent ( SJA ) is a high-performance, multithreaded, multi platform application to automate and schedule Synchronization of Data between two MySQL hosts. On Windows, it is included with SQLyog 3.63 - the latest version of the award winning MySQL Client. The Linux version of SJA is FREE and can be downloaded from http://www.webyog.com/sqlyog/downsja.html. In SQLyog, it can be accessed through Tools->Database Synchronization Wizard.

SJA does not require any installation at hosts running the MySQL server. You can use any host to run the SJA. For example – you can use SJA to keep your production databases ( probably hosted with an ISP ) in complete sync with your test database located in your PC or LAN.

SJA uses an efficient algorithm to generate checksums to find out the changes. Therefore, only those rows that have been inserted, updated or deleted since the last sync are transferred between the hosts.

Additionally, you can configure SJA to detect changes only for specific rows and columns. For example – you can exclude blob columns or include only those rows that fulfill a WHERE clause. This makes is an ideal tool to sync data even if there is limited bandwidth.

SJA is a command line tool that accepts a Job Definition file encoded in XML as one of the parameters. You can either create the Job Definition file manually or use one of the wizards included with SQLyog. If you use SQLyog to create your job files, you don’t need to have any knowledge about XML or the Job Definition schema.

On Windows platforms, SQLyog uses the Task Scheduler services to schedule your jobs. On other platforms you can use the respective OS scheduling services, e.g.– on Linux, you can use cron to schedule jobs.
Sounds pretty complicated to set up ... but worth a shot. The $49 price tag though is not too steep considering what it will do for you.
__________________
Ronnie T. Dodger
Web Design Forum-Web Design & Development News
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum
Tags: mysql, synchronization



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Search Engine Friendly URLs by vBSEO 3.0.0