Support » Fixing WordPress » Error establishing a database connection message

  • Used phpMyAdmin to change lost username and password. Followed instructions on the wordpress site. Now I get the subject error message when trying to access the site. What can I do to restore – and get my username and password? Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The database username and password that you put into wp-config.php, and which if in error, would throw the “Error establishing a database connection” message are different than the username and password you would use to login to the website.

    Did you edit wp-config.php? You should be able to retrieve the correct credentials from your host.

    I didn’t edit wp-config.php with ftp file manager. I edited user_pass according to the procedure below:

    http://codex.wordpress.org/Resetting_Your_Password#Through_phpMyAdmin

    Ok, have you verified the details in wp-config are correct?

    DB_USER in wp-config is same as user_login in phpMyAdmin for database.
    DB_PASSWORD in wp-config is same as user_pass in phpMyAdmin for database.
    Something else I need to look for?

    The name of the database and the host.

    Did anything else change? If all I did was reset my password and nothing else had changed and all my details were correct, my next step would be to open a ticket with my host.

    I guess that’s the next step. I only changed username and password, but that was only because my old username and password wouldn’t open WordPress editing fro some other unknown reason.

    In config file – the user/pass combination is for the database.
    And you do not need to alter them for wordpress user registrations.

    If you’re trying to create a new user to wordpress, then try repeating the steps in the codex link you posted above.

    I’ve submitted a support ticket with GoDaddy. Now that I’ve lost track of what was original and what I’ve changed, who do I contact to get the WordPress username and password that’s on file to access the dashboard for this site?

    Use the lost password functionality right below the login prompt.

    Are you sure, that — the config file user/pass are correct?
    If so, you can easily reset the password, using the Lost Password link, as Andrew said.

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