I’d appreciate an answer to this query if possible,
If I use Microsoft Access to create a desktop application. Is there any way I can sync the Access database to an online version using MySQL so if I am away from home then I have easy (if limited) access to it and then any changes made either on the desktop or online versions are synced to the other?
There’s no easy way, you have to write a program that sits in between, looks at all the data in one database, looks at all the data in the other, and writes appropriate queries in whichever’s language to make the updates. It’s not trivial.
Some people have tackled it before, if you search along the lines of “mysql access sync” you’ll find a program or two, but they’re not free.
If you’re still in the planning stages, why not use the online mysql database for the application itself?
Well if you’re still going down the syncing route you could run a local instance of MySQL and sync that to an online MySQL database to use in remote instances. That’ll be much easier than trying to sync MySQL with Access.
However, I still think you should take Dan’s advice and just make your desktop application interact with the online MySQL database so there’s no syncing required. Is there a need to have the desktop application work offline that you can’t use an online database?
Ok. I understand your viewpoint but would like to look into these options before I start. I currently run WAMP on my local computer. What I need advice with is how I sync my remote db to my local database. Both would be in MySQL. Thanks for your advice so far guys!
I’m not great with the MySQL commands but try a Google search for how to dump your database contents which should create a .sql file for you. You would be dumping data from your local database. When you want to “sync” or upload to the online database you would first need to drop the existing database and then execute the .sql file that you just created.
Dump local database to create .sql file.
Upload .sql file to online file system via FTP.
Drop online database.
Execute .sql file on online database server to create clone of local database.
You could probably create a cron job to handle this but I’m not going to be of much help with the code - sorry. Bonus is that there’s a ton of people on here who are a whole lot smarter than me and can probably help you with the code or even give you a better method of doing this.