I have one central server and 4 branches at different locations. Each branch has its own MySQL server installed withing their branch premises.
I need each branch data to be sent and saved at central server also. At point, i thought to work with replication but MySQL server has limitation. If i make central server as slave then it would connect to only one master (one branch). MySQL slave cannot connect to multiple masters. They are some lengthy ways to connect multiple masters but those are lengthy book keeping and not preferred by MySQL it self.
Hence i decided to change coding of our application. I am thinking to execute each statement under my application to two different server at same time. All MySQL (insert, delete, update) statements would be executed at two different servers at same time from my application, One at local server (installed at branch) and at same time it would also execute statement to remote server (central server). Database and table structure are same at both server so should not be issue executing statements.
But my problem is how do i make make this task working in vb.net application. I am not sure if i can make two connections to two different MySQL servers from single same application and execute all statements at same time to two different server.
Please help me to resolve the issue.
Thanks
Sanket
I need each branch data to be sent and saved at central server also. At point, i thought to work with replication but MySQL server has limitation. If i make central server as slave then it would connect to only one master (one branch). MySQL slave cannot connect to multiple masters. They are some lengthy ways to connect multiple masters but those are lengthy book keeping and not preferred by MySQL it self.
Hence i decided to change coding of our application. I am thinking to execute each statement under my application to two different server at same time. All MySQL (insert, delete, update) statements would be executed at two different servers at same time from my application, One at local server (installed at branch) and at same time it would also execute statement to remote server (central server). Database and table structure are same at both server so should not be issue executing statements.
But my problem is how do i make make this task working in vb.net application. I am not sure if i can make two connections to two different MySQL servers from single same application and execute all statements at same time to two different server.
Please help me to resolve the issue.
Thanks
Sanket