I’m a noob, is there someone could help me with this?
I have a local SQL database using Xampp thru phpMyAdmin and i want to mirror it to online MySQL in my website.
When I’m making changes to my local database, I want my online database to be updated (Realtime) with the changes made.
Is this possible? Can I have a sample php code or whatever that can do this? Thanks!!
Many times ago I wrote some script for this problem. As said above – replication it’s really good solution but in my case I could not use it. So.. if you need some like replication by master->slave maybe this script will be useffull :
so run like dump.sh -c config -l log.file
Where config like this:
I putted it to cron and all works fine for me.
Of course you can do all this manually …