[server default] # mysql user and password user=root password=mysqlpass # working directory on the manager manager_workdir=/var/log/masterha/app1 # manager log file manager_log=/var/log/masterha/app1/app1.log # working directory on MySQL servers remote_workdir=/var/log/masterha/app1
[server1] hostname=host1
[server2] hostname=host2
[server3] hostname=host3
所有参数必须遵循”param = value”语法。 例如,以下参数设置不正确。
1 2 3 4
[server1] hostname=host1 # incorrect: must be "no_master=1" 应该写成no_master=1 no_master
[server default] # mysql user and password user=root password=mysqlpass # working directory on the manager manager_workdir=/var/log/masterha/app1 # manager log file manager_log=/var/log/masterha/app1/app1.log # working directory on MySQL servers remote_workdir=/var/log/masterha/app1