Home » Performance » MySQL » Mysql Replication
Mysql Replication [message #3552] Sat, 20 September 2008 02:27 Go to next message
surendharsurya  is currently offline surendharsurya
Messages: 1
Registered: September 2008
Location: India
Junior Member
Hi all,

1) now working on mysql replication setup. i have doubt when my master server goes down how do i make my slave server to act as a master.

2) once crashed server is now ready to serve, how do i will change current master server to old master server.
Re: Mysql Replication [message #3657 is a reply to message #3552 ] Mon, 27 October 2008 01:44 Go to previous message
debug  is currently offline debug
Messages: 132
Registered: March 2008
Senior Member

1) you can do it manually - 'stop slave' on server 2, ensure that read_only is set to 0, and send queries to server 2.
2) once server 1 is up, you should re-synchronize it from server 2 (the same way as you setup replication), configure server 2 to act as slave for server 1, and switch queries back to server1.

Probably it makes sense to look at MMM: http://code.google.com/p/mysql-master-master/ - it can help to do things automatically.


Mikhail Solovyev, MySQL Performance Expert
MySQL Performance Blog
MySQL Consulting
Previous Topic:How is the relay log supposed to work?
Next Topic:Database Performance Counters for Mysql 5.0.45
Goto Forum:
  


Current Time: Fri Jul 10 02:23:31 EDT 2009

Total time taken to generate the page: 0.00878 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software

MySQL is a trademark of Sun Microsystems.
InnoDB is a trademark of Oracle Corp.

Percona Performance Forums are a service of Percona, Inc.
Not affiliated with Sun Microsystems or Oracle Corp.