配置这些参数 后才能使用msyqlsqlrpladmin socket.gaierror: [Errno -2] Name or service not known [root@mysqldb ~]# mysqlrpladmin --master=root:123@127.0.0.1:3307 --slaves=root:123@127.0.0.1:3308,root:123@127.0.0.1:3309 elect; WARNING: Using a password on the command line interface can be insecure. # Checking privileges. # Electing candidate slave from known slaves. # Best slave found is located on 127.0.0.1:3308. # ...done.