Welcome to Geeklog, Anonymous Thursday, December 26 2024 @ 06:03 am EST

Geeklog Forums

Cannot connect to DB server - text string


Status: offline

WarpGate

Forum User
Newbie
Registered: 07/12/02
Posts: 6
Hi Guys, When I back up my server, I stop the mySQL service but leave apache running, so if you go to my site you see a message "Cannot connect to DB server" ??

Where is this string generated from ? I want to change it to say something like, sorry this site is currently undergoing routine maintanence please call back shortly, or something like that. I've tried searching for that string of text but I dont seem to be able to find it ??

Can someone give me some clues (or better direct me to the file that I can edit to change this message) I tried to search these forums but found only 2 posts on this, and there all about installation problems

Cheers in advance

Warpy
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by WarpGate: When I back up my server, I stop the mySQL service but leave apache running, so if you go to my site you see a message "Cannot connect to DB server" ??

Any specific reason why you do that? mysqldump will back up just fine when MySQL is running (unless you're using InnoDB tables).


Quote by WarpGate: Can someone give me some clues (or better direct me to the file that I can edit to change this message)

system/databases/mysql.class.php

bye, Dirk
 Quote

Status: offline

WarpGate

Forum User
Newbie
Registered: 07/12/02
Posts: 6
Thanks for that dirk, re: why ?

I just thought that shutting down mySQL would make sure that all the tables remained static during the backup (I back up the whole of my server which takes arround 30 minutes or so) it does this automatically via a script at certain times of the week, I stop the mysql service, backup then restart the service..

Thanks for the pointers...

 Quote

All times are EST. The time is now 06:03 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content