Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 16, 2012, 07:23:42 PM

Pages: [1]   Go Down
  Print  
Author Topic: Re: operations whilst backing up Database  (Read 1054 times)
SJ
Intergalactic Superstar
*****
Offline Offline

Posts: 157


« on: January 25, 2011, 04:33:46 AM »

Hi,

I know that when I am doing a Database backup via phpmyadmin to my desktop, I can not access the database being downloading to edit etc, whilst the backup is in process..... Grinning

I just experienced a lot of lag on my website which did coincide with me doing a backup of my database to my desktop from phpmyadmin.

So my question is: whilst doing these backups (to desktop) would this have the same effect "cant access database" for users to my website who are trying to login ? Will they be able to process operations that connect to database etc ?

Thanks
Logged
Debbie
Spaceship Navigator
*****
Offline Offline

Posts: 96



WWW
« Reply #1 on: January 27, 2011, 07:11:25 AM »

While a fine moderator of this forum can correct me if I'm wrong, but from what I understand of working with databases, it would make sense that the actual database is "tied up" so to speak whilst you are backing it up.

To understand why, you need to think this through. (Not being rude - just educating)

The database holds content that interacts with something - in this case, information you're presenting on a blog or website application. If you are backing it up, and someone tries to access that database to add new data, do a query, or any other interaction, where is the back-up beneficial if the content is dynamically changing whilst you're backing up? Your backup would be out of date immediately.

I know when working with local programming databases in software application creation, the programs put a lock on the database tables I'm working with so users can't access them while I'm working on them to rebuild, repair, or whatever.

So, I can only make the leap that the databases on the web servers would also do the same when you're backing up. It probably locks down the database from use while the backup is in progress and then releases it when you're backup is finished.

If you are getting a lot of traffic to your site and the lag time is significant to your users, you may want to perform back-ups during a time when the traffic is not so heavy, or schedule the maintenance so that you can put up a notice that the "scheduled maintenance" will be performed during such and such a time and that the site (or database) will be unavailable.

Hope this helps!

Debbie
Logged

"Sooner or later, you are going to learn, just as I did, that there is  a difference between KNOWING the path and WALKING the path."  ~Morpheus, from The Matrix~
SJ
Intergalactic Superstar
*****
Offline Offline

Posts: 157


« Reply #2 on: January 28, 2011, 03:04:47 AM »

Debbie, As I suspected  Thumbs Up

Thanks for your help.
 Mmm Coffee
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: