Question

Shall I use MySQL replication to synchronize a local database and a remote database? If so, how do I setup both master and slave? Are there any other methods available to do this?

Was it helpful?

Solution

how to setup master/slave?

This Replication: How to guide has both what you need to do on the master and the slave.

any other methods available to do this

There is also Multi-Master and Circular Replication for MySQL Cluster.

OTHER TIPS

If you are looking for a simple master-master replication between the servers, you can refer the below site. Just change the ip addresses and the database you want to replicate.

https://gopukrish.wordpress.com/2014/05/29/mysql-master-master-replication/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top