Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: make a slave db a master db

From: B. Keith Murphy <kmurphy(at)icontact.com>
Date: Thu Aug 30 2007 - 09:43:14 EDT


Ananda,

The answer to your question is very simple actually, but there is some subtleties that you need to think of.

To stop the slave from getting replication data from the master just issue a "stop slave" command. I would also recommend that you run a "reset master" command in addition. This will reset the master server information to empty (not pointing anywhere).

The reason why it is subtle is that you need to know what state you want your data in. When you issue the stop slave command it breaks the replication with the master with your data on the old slave basically the same as the master. Is that what you really want? If not, you need to take other measures to get your data in the state you want before bringing it online as a standalone server.

Hope that helps.

Keith

What data do you want on the new master? ----- Original Message -----
From: "Ananda Kumar" <anandkl@gmail.com> To: "MySql" <mysql@lists.mysql.com>
Sent: Thursday, August 30, 2007 3:37:48 AM (GMT-0500) America/New_York Subject: make a slave db a master db

Hi All,
We have one master and two slave dbs.
Now we want one of the slaves to work as a stand alone master db, so what are the steps that i need to take to make one of the slaves as a stand alone master db.

Do you need help?X

regards
anandkl

-- 
B. Keith Murphy 
Database Administrator 
iContact 
2635 Meridian Parkway, 2nd Floor 
Durham, North Carolina 27713 
blog: 
http://www.paragon-cs.com/wordpress 

(o) 919-433-0786
(c) 850-637-3877
Received on Thu Aug 30 09:47:28 2007

This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 10:08:11 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library