Error establishing a database connection

Discussion in 'WordPress' started by log0008, Jun 7, 2013.

  1. #1
    Hello,

    I am having some weird issues with my site and HostGator: MY site has been running fine for 9 months, no I get this weird error saying: Error establishing a database connection but going on Yesterday after 25 mins the site will go back to normal - what could cause this?
     
    log0008, Jun 7, 2013 IP
  2. log0008

    log0008 Active Member

    Messages:
    679
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    80
    #2
    I also worked out the issue also effect WP on subdomains
     
    log0008, Jun 7, 2013 IP
  3. themes4all

    themes4all Well-Known Member

    Messages:
    662
    Likes Received:
    47
    Best Answers:
    6
    Trophy Points:
    100
    #3
    What caused this is a Server Update or something done by your Hoster.. it's not Wordpress.

    Goodluck
     
    themes4all, Jun 9, 2013 IP
  4. robaid

    robaid Member

    Messages:
    126
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    35
    #4
    If you (or someone evil) didn't tinker with wp-config or MySQL, there are only two reasons.

    I experienced that when i was on shared hosting before, they probably made a temporary change to server or your database got to its max size before they adjusted the settings.
     
    robaid, Jun 9, 2013 IP
  5. log0008

    log0008 Active Member

    Messages:
    679
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    80
    #5
    So if it happens again contact HostGator?
     
    log0008, Jun 9, 2013 IP
  6. robaid

    robaid Member

    Messages:
    126
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    35
    #6
    If everything worked well and you haven't changed anything, notify them about the issue and they might respond you with something similar to the paragraph bellow.

    Another scenario where that message can show up is when SQL server is down or under maintenance/update. I believe that was the case since HostGator seems professional (never used them, but many people recommended them when I was switching away from shared hosting).

    The first time I had that problem on shared hosting, they were introducing new servers and back-end and my website was offline for 18 hours in 2 days (many unfortunate events after which they returned my website to the old server and made it respond slower than ever).
     
    robaid, Jun 10, 2013 IP
  7. log0008

    log0008 Active Member

    Messages:
    679
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    80
    #7
    Found out there was an issue, HostGator sent me an email saying that they would be doing updates to my shared server but downtime should be limited to 10 mins or less.
     
    log0008, Jun 10, 2013 IP
  8. robaid

    robaid Member

    Messages:
    126
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    35
    #8
    Glad I was right :)
     
    robaid, Jun 10, 2013 IP
    log0008 likes this.