WordPress.org

Ready to get started?Download WordPress

Forums

Error establishing a database connection message (11 posts)

  1. mcv427
    Member
    Posted 1 year ago #

    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.

  2. Andrew Bartel
    Member
    Posted 1 year ago #

    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.

  3. mcv427
    Member
    Posted 1 year ago #

    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

  4. Andrew Bartel
    Member
    Posted 1 year ago #

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

  5. mcv427
    Member
    Posted 1 year ago #

    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?

  6. Andrew Bartel
    Member
    Posted 1 year ago #

    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.

  7. mcv427
    Member
    Posted 1 year ago #

    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.

  8. ak.singla
    Member
    Posted 1 year ago #

    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.

  9. mcv427
    Member
    Posted 1 year ago #

    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?

  10. Andrew Bartel
    Member
    Posted 1 year ago #

    Use the lost password functionality right below the login prompt.

  11. ak.singla
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic