server2
server4
server5
MySQL开机自启
此时所有节点都关闭了
需要重新设置引导节点
主配置文件
[routing:ro] bind_address = 0.0.0.0 bind_port = 7001 destinations = 192.168.3.44:3306,192.168.3.22:3306,192.168.3.55:3306 routing_strategy = round-robin [routing:rw] bind_address = 0.0.0.0 bind_port = 7002 destinations = 192.168.3.44:3306,192.168.3.55:3306 routing_strategy = first-available
给远程登录主机给一个权限
其他主机没有
会自动切到之前主配置文档中后面的主机server5



