mysqldatabasesynchronizationmysql-workbenchmysql-gui-tools

how to synchronize two databases of different servers?


I have two databases. One is on local server and the other is on a production server. I'm continuously working on the local server and after approval I want to update production server. Wih the current setup, I need to take dump or copy or export of database and then import into production database, every time. Is there any way of synchronization method in phpmyadmin for database on different server.

It is possible to synchronize a model in MySQL Workbench with a live database?

Other then this, how can I do this? I'm able to use queries, the command line and phpmyadmin itself.

Please specified any simple method.


Solution

  • The "synchronisation" feature you are looking for is called replication. A replication can be set up between a master and a slave machine. It does not rely on a constant connection, but stores all changes on the master and replays all those changes on the slave once a connection is established.