PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > mysql.general > make a slave db a master db
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
make a slave db a master db

Réponse
 
LinkBack Outils de la discussion
Vieux 30/08/2007, 08h37   #1
Ananda Kumar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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.

regards
anandkl

  Réponse avec citation
Vieux 30/08/2007, 14h43   #2
B. Keith Murphy
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: make a slave db a master db

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 s.

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.

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

  Réponse avec citation
Vieux 30/08/2007, 14h49   #3
Ananda Kumar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: make a slave db a master db

Hi Keith,
Thanks for the info,
Actually, we are moving our db to a new database center, so during one point
of time, we will not have access to the old data center (master db), so i
want to set up a second slave, and at a specific point in time, make the
second slave, a stand alone master db.

regards
anandkl


On 8/30/07, B. Keith Murphy <kmurphy@icontact.com> wrote:
>
> 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 s.
>
> 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.
>
> 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
>


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 16h18.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12725 seconds with 11 queries