Home >Database >Mysql Tutorial >mysql环形同步(多主多从)_MySQL

mysql环形同步(多主多从)_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-01 13:48:531467browse

bitsCN.com

  其实跟普通的同步一样,假设有三台数据库服务器 A  B  C  环形同步就是  B从A同步 C从B同步 A从C同步   这样的好处就是每一台都可以写

  记得为my.cnf加上 log-slave-updates 选项  这样从服务器读的数据才会更新bin日志

bitsCN.com
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn