linux , mysql互为主从复制
Master-1:192.169.7.242 Master-2:192.169.0.197 MySQL版本:mysql-5.7 1.mysql配置文件修改及说明 分别修改两个节点的mysql,此处修改配置文件为:/etc/my.cnf 修改Master-1如下: # For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html # *** DO NOT EDIT THIS FILE. It's a template which will be copied to the # *** default location during install, and will be replaced if you # *** upgrade to a newer version of MySQL. [mysqld] # Remove leading # and set to the amount of RAM for the most important data # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%