MySQL Forums
Forum List  »  Replication

Re: How to disable replication for master/slave
Posted by: Rick James
Date: February 05, 2014 05:35PM

> virtualize this environment with only one server
What do you mean?

To stop replication:
STOP SLAVE;
(on slave)
Assuming nothing else is disrupted, START SLAVE will have replication continue where it left off, and the Slave will soon be caught up.

The Master does not care if the Slave(s) are stopped.
Turning off log_bin would prevent the Master from writing out stuff that the Slave needs.

> take an image of the master
Stop mysqld. At that point mysql's directory can be copied to another machine. If this is to make a Slave, there are a few more steps:
* makes sure server_id (in my.cnf) is different on each machine
* turn on log_bin (on Master)
* run CHANGE MASTER on the Slave (after starting it up).
* (Read the online pages about replication; I may have forgotten something).

Those pages are far more verbose than I have been. But I have given you about all that is relevant.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: How to disable replication for master/slave
1713
February 05, 2014 05:35PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.