Error establishing a database connection

Discussion in 'Databases' started by MikeBuyco, Jul 26, 2011.

  1. #1
    I have a problem with my wordpress site. I says "Error establishing a database connection". I can't access the wp-admin panel but I can access the cpanel. I've tried using the repair db in my hosting account but it's still not working. I'm using hostgator. Here is the site:

    mikebuyco.com

    Please help.
     
    MikeBuyco, Jul 26, 2011 IP
  2. aroel

    aroel Well-Known Member

    Messages:
    154
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    125
    #2
    Cross check your wp-config.php with the database username/password.
     
    aroel, Jul 26, 2011 IP
  3. vic.seller

    vic.seller Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    check wp-config.php ,database username/password. Hope u all ok
     
    vic.seller, Jul 27, 2011 IP
  4. MikeBuyco

    MikeBuyco Member

    Messages:
    702
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    35
    #4
    Site is now ok. Contacted the hostgator support and was very helpful. Thanks for the suggestions too. :)
     
    MikeBuyco, Jul 27, 2011 IP
  5. ashishy.freelancer

    ashishy.freelancer Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    the best way to check is through the event viewer for the error that is occuring we can catch up the error from there and then try to resolve it
     
    ashishy.freelancer, Aug 1, 2011 IP