MySQL Replication

你说的曾经没有我的故事 提交于 2019-11-26 11:17:40

问题


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?


回答1:


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.




回答2:


Full chapter on replication:

http://oreilly.com/catalog/hpmysql/chapter/ch07.pdf

and also very detailed here:

http://downloads.mysql.com/docs/mysql-replication-excerpt-5.1-en.a4.pdf




回答3:


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/



来源:https://stackoverflow.com/questions/3402794/mysql-replication

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!