Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

MySQL replication master port change

$
0
0

I have 4 servers running MySQL 5.6. A,B,C and D. A and B are Master and slave whose default port is 3306. C and D are running in non-default ports 3360.

A and C are in Master-Master replication mode. C and D are in Master-Slave setup.

Now I need to change the ports on A and B from 3306 to 3360, what commands I need to run and in what order to have B,C and D back in replication?

Is the below steps right?

  1. Stop the slaves in B, C and D.
  2. Stop A and change the port in A to 3360 and start A.
  3. Stop B and change the port in B to 3360. Ensure skip slave start is set to true.
  4. Start B and run change master to master_port=3360 and start slave.
  5. In C, run the same as step 4.
  6. Start slave in D.

Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>