Author Topic: "SMF cannot connect to database" errors  (Read 5730 times)

0 Members and 1 Guest are viewing this topic.

Offline mikeselectricstuffTopic starter

  • Super Contributor
  • ***
  • Posts: 13971
  • Country: gb
    • Mike's Electric Stuff
"SMF cannot connect to database" errors
« on: July 17, 2011, 10:32:42 am »
Been seeing this error  quite a lot in the last week or so.
It tends to come up pretty instantly when it happens.
Usually OK on the  first retry though.
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 38619
  • Country: au
    • EEVblog
Re: "SMF cannot connect to database" errors
« Reply #1 on: July 17, 2011, 11:13:10 am »
I see it occasionally.
No idea of the exact cause, but assuming it's the shared server getting temporarily overloaded.

Dave.
 

Offline patb

  • Regular Contributor
  • *
  • Posts: 54
  • Country: pl
Re: "SMF cannot connect to database" errors
« Reply #2 on: July 17, 2011, 11:37:03 am »
Yeah, same here. I get also page load time-outs from time to time (not so uncommon).
 

Offline Joshua

  • Regular Contributor
  • *
  • Posts: 194
  • Country: us
"SMF cannot connect to database" errors
« Reply #3 on: July 17, 2011, 06:43:55 pm »
I concur with Mike. I also have had this same message frequently within the last couple of months. It usually goes away on the first refresh as well.
 

Offline Jimmy

  • Regular Contributor
  • *
  • Posts: 224
  • Country: au
Re: "SMF cannot connect to database" errors
« Reply #4 on: July 18, 2011, 02:40:28 am »
I haven't seen it once on this forum

It may depend on how many connections you can have on the database at any one time as the eevblog forum gets more users there is a better chance someone is using the forum at the exact same time as you. 
 

Offline Chet T16

  • Frequent Contributor
  • **
  • Posts: 537
  • Country: ie
    • Retro-Renault
Re: "SMF cannot connect to database" errors
« Reply #5 on: July 18, 2011, 10:38:29 am »
I've seen this a few times aswell but can't remember ever having a page timeout so it points to something internal between the forum and database.

Is the database on the same server or a different one? My current host uses a different server for databases so no more default 'localhost' in setting up. Generally it works fine but its another variable into the equation when tracking down problems
Chet
Paid Electron Wrestler
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 38619
  • Country: au
    • EEVblog
Re: "SMF cannot connect to database" errors
« Reply #6 on: July 18, 2011, 11:36:41 am »
The forum is on the same server, using LocalHost

Dave.
 

Offline Neilm

  • Super Contributor
  • ***
  • Posts: 1558
  • Country: gb
Re: "SMF cannot connect to database" errors
« Reply #7 on: July 18, 2011, 06:13:38 pm »
Ironically, I got the message when trying to view this.

Neil
Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe. - Albert Einstein
Tesla referral code https://ts.la/neil53539
 

Offline ndictu

  • Regular Contributor
  • *
  • Posts: 211
  • Country: sk
Re: "SMF cannot connect to database" errors
« Reply #8 on: July 18, 2011, 07:30:12 pm »
Dave: I'm not familiar with SMF but maybe there is an error log somewhere with more info? "Cannot connect" is too vague, could be that the databse doesn't respond to the request at all, or it could actively deny it for some reason.

Also, the database server probably keeps its own logs, maybe you could find something there. Depends on what you are using (MySQL?) and the settings.

It would probably help to know the time so you can search the logs easily, so next time this happens to me I'll post the exact time here. I suggest everyone would do this, a few timestamps should be enough. Also, make sure to use the server time (shown under your name on the top of the page) since it can be a little different from your local time.
 

Offline Kiriakos-GR

  • Super Contributor
  • ***
  • !
  • Posts: 3525
  • Country: gr
  • User is banned.
    • Honda AX-1 rebuild
Re: "SMF cannot connect to database" errors
« Reply #9 on: July 18, 2011, 09:39:53 pm »
The server has lots of slowdown issues the last 48 Hours,  CPU usage issue again ?
Dave check the logs .  :)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf