'Synchronise two databases , everytime something changes in DB A , it changes in DB B and vice versa

I have a database A, I am planning on getting a server in a foreign country and have a similar database to A called B. Everytime something changes (tables , data) in database A, it should also change on B, and vice versa.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source