Viewing 5 replies - 1 through 5 (of 5 total)
  • I’m having the same problem today. I only started fiddling with my new wordpress site today and couldn’t even update WordPress to 3.5.2.

    I keep getting this message:

    Error establishing a database connection when I type in my domain name, http://www.jennroseton.com

    And when I try to login to my the admin panel, I get another 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.”

    I don’t have any plugins on my site yet. I’ve only been using Firefox.

    Thread Starter Adam

    (@britishmenu)

    I wouldn’t have thought it would be a database login information probelm as all my posts/comments etc are uploaded and live, so my login information must be correct for this.

    2 minutes later, it’s now working!

    Thread Starter Adam

    (@britishmenu)

    Your issue is completely unrelated to mine anyway.I don’t have a database connection error.

    [No bumping. If it’s that urgent, consider hiring someone.]

    Not sure if you have resolved this, but here is what I had to do.

    I had the same problem. I contacted support for my hosting provider (GoDaddy) and after some investigation it turned out to be an issue with ModSecurity on the Apache web server hosting my site. I found messages in my error logs that showed ModSecurity blocking my attempts to upload images, log-in to admin, etc.

    GoDaddy “whitelisted” the IP address of my computer that I use to administer the site, basically telling ModSecurity to let my specific computer have full access to administer the site. Things are now working as expected.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can't login to wordpress/preview posts/upload images’ is closed to new replies.