Jump to content

A way to synchronize the online db with changes made in the off line db


sebastiaandraaisma

Recommended Posts

Hi, I have a small question.

Is there a program maybe that allowes the on line database to be synchronized with the off line version?

The reason I'm asking is that I would like to take my laptop to clients, fill the database off line as there is not always a wifi area in the naibourhood, than in the evening when I'm connected press a button and transfer the data of the day into the on line database.

I have an Apache server, MySQL and PHP installed on my laptop. I have our website off line (not working as I most likely mised something in one of the configuration settings) but it would be great to work off line and just place everything into the on line database as soon as I'm connected to the internet.

Any sugestion is welcome!!!

Kind regards,
Sebastiaan
Link to comment
Share on other sites

you can try mysql replication i.e. setup your laptop as the master and the online database as the slave of this master. You would need to start replication on the online database (by using "start slave" statement) once you are connected to the network and stop replication (by using "stop slave" statement) when you are to disconnect the laptop from the network.
Link to comment
Share on other sites

Hello and thank you for answering!
Hm.. than I need a different solution I think as I do not have access to the php.ini, my.ini or the httpd.conf.

Is there another way, for example can I make a template page ore something (on line) that is like a form, than the off line version just puts the data in the form and I press "send" and the database gets updated with the data I had off line?

Any sugestion or advise is welcome as I'm just a beginner :)

Kind regards,
Sebastiaan
Link to comment
Share on other sites

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.