I have a requirement as below.
- Windows application in c# with My sql database.
- MySql database in both local and server .
- One centralized server with many client
- Synchronizing the server database at each time when the new entry or update is
happen in local machine. - The server data also needs to be updated in local at regular intervals inorder to avoid conflicts
I need to know what is the best approach to follow to make this synchronization without any conflicts.
Thanks in advance
If your “local machines” are always connected to the server, you don’t need a local database – you can connect directly to the server as one MySQL server can handle multiple clients…
If, however, your central server is not always available or your clients can go offline and should still be able to work and they synchronize data when they come back online, then what you need to build is an Occasionally Connected Application.
See if you can use any of the recommendations on that page. If I were you, I would start exploring Synchronization Services for ADO.NET (MySQL has a full ADO.NET provider)