Jump to content

Recommended Posts

Hello,

 

Did anyone already solve this task? How is this done best?  ???

 

I have a webshop. The products are maintained in a local MSSQL database in the office of my customer. How do I move the products automatically from the MSSQL database to the webshop database (MySQL) at my webhoster? I’d like this to be done automatically with a script every day.

 

Thanks for any answers!

 

Link to comment
https://forums.phpfreaks.com/topic/123656-copy-or-sync-databases/
Share on other sites

The method that Maq explained is complicated and for free.

 

There is also a program that can do the job, unfortunately it's not for free (but good things never are ...). SyncTables.com copies and synchronises tables in databases. MySQL, MSSQL and Access are supported. I use it in a cron job to sync my tables every day.

 

Hope this helps!

  • 2 weeks later...

First you need to set up a Cron Job.  After that, assign a script to that Cron that dumps your database into an .sql file and then copies the .sql file back to the other database.

 

hey, am facing the same sort of problem and am sure that this might be the solution.i am a bit green on mysql and mssql so go easy on the bashing.

 

so how do i set up a cron job and could you please try give me the script that is needed to be assigned to the cron?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.