If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Migrating your live database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-23-11, 22:30
cancer10 cancer10 is offline
Registered User
 
Join Date: Mar 2008
Posts: 33
Question Migrating your live database

Hi People,

I am not too sure if this is the correct section to post this. (Mods pls move this to the appropriate section if not)

This is a common scenario when you need to move your live website which has a good amount of traffic all the time to a new server. How do you manage to move the db WITHOUT locking the db or putting up a "site under maintenance" page and loosing any data?

Whats the best approach?

Thanks in advance
__________________
Interview Questions & Answers - www.focusinterview.com
http://outlineme.com/cancer10
Reply With Quote
  #2 (permalink)  
Old 11-25-11, 03:33
it-iss.com it-iss.com is offline
Registered User
 
Join Date: Sep 2009
Location: San Sebastian, Spain
Posts: 620
Avoiding downtime is almost impossible, the thing to think through is to limit the downtime. For example, if the database is large then this implies more data will need to be copied across from one server to another before the database is available. Once all the data is copied then you flip the switch and make the database live.

Another approach is to enable replication from one database to the other. This way you have the two databases in sync. Then you stop access on the primary databases and change the scripts to point to the other database. This reduces the downtime of the application and impact on your end users.
__________________
Ronan Cashell
Senior Oracle/MySQL DBA
http://www.it-iss.com
Reply With Quote
  #3 (permalink)  
Old 11-25-11, 04:59
cancer10 cancer10 is offline
Registered User
 
Join Date: Mar 2008
Posts: 33
Thanks for this idea
__________________
Interview Questions & Answers - www.focusinterview.com
http://outlineme.com/cancer10
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On