emexrevolarter Posted June 27, 2017 Share Posted June 27, 2017 I have a web app for managing Camping Program. I need to allow users to register, obtain registration numbers, and upload their bio before the camp begins. They will do all these online which will be stored on the remote server hosted on the internet. When the camp eventually begins, the local server will take in same data as above from those present in the camp. Changes are also made on it by the users. I am confused on how to synchronise both servers to effect the latest changes on both, so that the user viewing the app locally within the camp without internet will have same data as the one who is outside the camp accessing the hosted app through the internet. Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/304212-sync-local-and-remote-mysql-databases-with-php/ Share on other sites More sharing options...
requinix Posted June 27, 2017 Share Posted June 27, 2017 If there's no internet in the camp then you can't possibly keep the two versions up to date with each other... Quote Link to comment https://forums.phpfreaks.com/topic/304212-sync-local-and-remote-mysql-databases-with-php/#findComment-1547753 Share on other sites More sharing options...
Psycho Posted June 27, 2017 Share Posted June 27, 2017 When the camp eventually begins . . . If that means that when camp begins there *should* not be any more updates to the data, then you could export that data and take it to the camp. Restore it there and work with it as needed. Then when camp is complete, export it there and restore it to the web server. Note: Even thought he records on the internet server would be overwritten, a change should probably be made to prevent edits anyway. That a 'simple' explanation. But, if the two system have a different data schema or purpose you may have to build a process to export/import the data both ways that takes into account those schemas and business rules. Just not enough information to really provide clear advice. Quote Link to comment https://forums.phpfreaks.com/topic/304212-sync-local-and-remote-mysql-databases-with-php/#findComment-1547766 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.