The organisation I work for has done something similar.In our case, we roughly followed these principles:1. The client app has is own database, at the beginning a copy of the main server database2. The server app also has its own database3. The client app can exports its data into a json file, which can be imported on the server app4. The server app can export its data into a json file which can be imported on the client app5. The end users are the ones who initiate the sync process, so that control rests with them, but its easy to automate this sync.6. The json import logic on the client and server is then able to deal with duplicate dataBe on the lookout for autogenerated primary keys, those can be a nasty little demon to deal with when syncing data. Infact, I would go out on a limb and suggest you dont use autogenerated primary keys but instead use something else.Also, MySQL supports Master-Master replication, where data flows both ways. But of course it assumes that the two computers can communicate directly, i.e. public IP addresses on both (unless networking gurus have another way).On Fri, May 20, 2016 at 11:34 AM, Allan O. via skunkworks <skunkworks@lists.my.co.ke> wrote:_______________________________________________I am thinking of having two similar MySQL databases. One local on the clients' machines and another in the cloud, then have a way of syncing records.The web app is built on the LAMP stack.Hi people,I have a requirement to include offline functionality for an already existing web application.MySQL offers replication but that assumes a master - slave configuration which won't work for this scenario (because data flows two way).Anyone done this before or know the best way to implement this?Regards,Allan
skunkworks mailing list
skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke
_______________________________________________
skunkworks mailing list
skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke