安装:
环境:
系统:centos7 x3
master:192.168.220.133
slave1:192.168.220.136
slave2:192.168.220.137
mysql服务器,从服务器,IO,SQL状态为NO
解决:
代码语言:javascript复制1、master:
mysql>grant replication slave on *.* to repl@% identified by '1234';
2、master,slave:防火墙放行3306端口:
firewall-cmd --zone=public --add-port=3306/tcp --permanent