You are on page 1of 1

Konfigurasi Master-Master MySQL

Setting Server A:
server-id = 1
replicate-same-server-id = 0
auto-increment-increment = 2
auto-increment-offset = 1

master-host = <IP address of Server B>


master-user = <slave user>
master-password = <slave password>
master-connect-retry = 60
replicate-do-db = <database name>

#log-bin = C:\mysql\log\log-bin.log # change this to a path/name appropriate to your system


binlog-do-db = <database name>

Setting Server B:
server-id = 2
replicate-same-server-id = 0
auto-increment-increment = 2
auto-increment-offset = 2

master-host = <IP address of Server A>


master-user = <slave user>
master-password = <slave password>
master-connect-retry = 60
replicate-do-db = <database name>

#log-bin= C:\mysql\log\log-bin.log # change this to a path/name appropriate to your system


binlog-do-db = <database name>

You might also like