MySQL Master-Master Replication

Found 2 interesting article on Howtoforge

Setting Up Master-Master Replication With MySQL 5 On Debian Etch
Setting Up Master-Master Replication On Four Nodes With MySQL 5 On Debian Etch

I just wonder, what the different Master-Master Replication on X Nodes with MySQL Clustering ???

Advertisements

[mysql] rubah status master di slave

Dari MySQL Documentation

Berikut adalah cara merubah parameter Master di MySQL Slave server:
sebelum merubah pastikan proses slave berhenti dahulu

slave stop;

kemudian rubah nilai Master dengan perintah berikut:

mysql> CHANGE MASTER TO
    ->     MASTER_HOST='master_host_name',
    ->     MASTER_USER='replication_user_name',
    ->     MASTER_PASSWORD='replication_password',
    ->     MASTER_LOG_FILE='recorded_log_file_name',
    ->     MASTER_LOG_POS=recorded_log_position;

Lihat kembali status nya untuk memastikan:

show slave status;

Bila sudah pasti nyalakan kembali proses start:

slave start;