[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;
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s