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;
0 Responses to “[mysql] rubah status master di slave”