一、主服务器相关配置 1、创建同步账户并指定服务器地址 [root@localhost ~]mysql -uroot -pmysql>use mysqlmysql>grant replication slave on *.* to 'testuser'@'192.168.1.102' identif Read More
posted @ 2017-10-26 12:33 平平淡淡是幸福 Views(170) Comments(0) Diggs(0) Edit
mysql主从同步: 1.为什么要主从同步? 在Web应用系统中,数据库性能是导致系统性能瓶颈最主要的原因之一。尤其是在大规模系统中,数据库集群已经成为必备的配置之一。集群的好处主要有:查询负载、数据库复制备份等。其中Master负责写操作的负载,也就是说一切写的操作都在Master上进行,而读的操 Read More
posted @ 2017-10-26 11:27 平平淡淡是幸福 Views(3029) Comments(0) Diggs(0) Edit