java - Synchronizing local database with remote database and vice versa -


i developing web application php needs synchronize local mysql database java desktop version of web application interacting with. @ same time need local db synchronize remote db. how do without using other software mysql compare. appreciate help. thanx guys.

you have significant architecture issue. needs planned well. two-way replication isn't going work unless have thought out , understand how conflict resolution , impact have on application. in particular, can forget using auto_increment.

for one-way replication, can use mk-table-sync, or use mysql replication in way (there variety of possiblities).

you can run mysql instance on server, use mk-table-sync periodically synchronise locally, , use mysql replication on that. has benefits, particularly if there tables don't want replicate.

you need think how it's going work, if plan two-way synchronisation. possible may end writing custom code it, conflict resolution mechanism may mandate it.


Comments

Popular posts from this blog

Javascript line number mapping -

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -