My site getting “Error establishing a database connection” for past 19 hours

Discussion in 'Site & Server Administration' started by krashok2010, Apr 25, 2011.

  1. #1
    My site is running in wordpress... it was running fine for past 3 months... yesterday suddenly my site showed me "Error establishing a database connection"... i did not changed anything in my site... everything are perfect... i contacted my host and they have foolish development team... they don't know to fix the error... my site lost all traffic... please say me how to correct his problem....
     
    krashok2010, Apr 25, 2011 IP
  2. VinCme

    VinCme Well-Known Member

    Messages:
    325
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    125
    #2
    I think this has something to do either with the mysql configuration file, or your wordpress db configuration file is wrongly setup (db host, db name, db user, db password or table prefix).
     
    VinCme, Apr 25, 2011 IP
  3. saqib889

    saqib889 Peon

    Messages:
    1,291
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hey, this happens some times when server is being overloaded, if this is not the case then do one thing check your config.php file located in public_html

    or ask your provider to update their php and database version
     
    saqib889, Apr 25, 2011 IP