Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Folks, my master MySQL server got an additional NIC used for local networking and now I want all slave servers to use the new local IP of the master server.

I know I can achieve this using "CHANGE MASTER TO..." command but it has a side-effect: if master host is changed MASTER_LOG_POS and MASTER_LOG_FILE are reset.

Of course, I can re-set these variables manually but I wonder if there is a better way? Is it possible to change the master host on slave and preserve these variables?

share|improve this question

If you are not using IP address in the 'change master to', then you can use the hosts file to redirect your traffic w/out touching your mysql.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.