1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
!include my.cnf [mysqld.1] log-bin log-slave-updates [mysqld.2] log-bin log-slave-updates [mysqld.3] log-bin log-slave-updates [mysqld.4] server-id=4 log-bin=server4-bin log-slave-updates [ENV] SERVER_MYPORT_4= @mysqld.4.port SERVER_MYSOCK_4= @mysqld.4.socket