• I’ve been getting this error message on and off now for a couple of weeks. I called my hosting company and they found nothing wrong with my account. Does anyone else know why this message continues to appear and what I need to look into in order to resolve this issue. This is the entire message:

    Error establishing a database connection

    This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.

    Are you sure you have the correct username and password?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running?
    If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.

    Thank you.

    ~Adrienne

Viewing 4 replies - 1 through 4 (of 4 total)
  • If your site is managing to connect to your database sometimes, but not at other times, then to me, it sounds like there’s something up with the database server.

    You could try resetting the database password and changing your wp-config.php, but if it did connect once, then the error lies with the server.

    Thread Starter Missa

    (@missa)

    Yeah, if you refresh the page then it instantly connects. What needs to be done with the wp-config.php file? You can tell I’m not much of a pro at this.

    Thank you Christine for responding… It’s just strange.

    Nothing needs to be done with your wp-config.php file. The problem lies in the server that your site is hosted on. That server is loosing it’s connection to the database server from time to time. There’s a few reasons why this could be, but this is something that you will have ot ask your hosting company. They’ll need to investigate why the disconnections are happening, and they will (should…) have access to better log files then you do to diagnose what the problem is.

    Thread Starter Missa

    (@missa)

    Thank you Michael, I’ll call them again. Let them know what you said and see if I can get someone this time that possibly knows why I’m loosing the connection. I was afraid it was something on my end.

    I appreciate your help. Thank you!

    ~Adrienne

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error establishing a database connection’ is closed to new replies.