环境准备 IP HOSTNAME SERVICE SYSTEM 192.168.131.129 mysql-master1 mysql CentOS7.6 192.168.131.130 mysql-slave1 mysql CentOS7.6 192.168.131.131 mysql-slave2 mysql CentOS7.6 [root@localhost ~]# sestatus SELinux status: disabled [root@localhost ~]# systemct…
实现环境: Master 主:192.168.0.102 (Mysql 5.6.36) Slave 从 :192.168.0.103 (Mysql 5.6.36) 步骤1.在主DB服务器上建立复制账号 (在Master上执行) # mysql mysql> CREATE USER 'repl'@'192.168.0.%' identified by '123456'; mysql> GRANT REPLICATION SLAVE ON *.* ' TO repl'@'192.168.0.%'…