• tuesddday

    (@tuesddday)


    I’m getting an “error establishing a database connection” when I go to /wp-admin/ to log-in. The site itself works fine though!

    A bit confused on this one, any thoughts?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    – “Error establishing a database connection” means that there is a problem with the connection to your database
    – a problem with the credentials stored in the wp-config.php file not matching what mysql expects.
    – Try reviewing the following codex for some guidance: http://codex.wordpress.org/Common_WordPress_Errors#Error_Establishing_Database_Connection

    • This reply was modified 9 years ago by t-p.
    sinip

    (@sinip)

    Could you post url of your website?
    I’ve here encountered several cases of people who had two instances of WordPress running on their hosting, without actually being aware of that.

    Thread Starter tuesddday

    (@tuesddday)

    Hi sinip, there definitely is a few instances of WP running on this hosting plan. But as far as I was aware, they were all running correctly.

    t-p – My confusion is the fact that the web page serves up just fine, except when I go to /wp-admin/ to log-in. It must be successfully connecting to the database to pull the content of the webpage, no?

    sinip

    (@sinip)

    Exactly right, that’s why I’m thinking that you’re trying to access WordPress instance that is indeed not connected to the database.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Database error on /wp-admin/ – site works fine’ is closed to new replies.