WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Error establishing a database connection (13 posts)

  1. xportrecords@gmail.com
    Member
    Posted 1 year ago #

    I went into my site and I could not enter the page, gave this error
    Error establishing a database connection
    can someone help me?

  2. Lorenzo Orlando Caum
    Member
    Posted 1 year ago #

    Double-check the credentials in your wp-config.php file.

    This is usually in the site root.

  3. govpatel
    Member
    Posted 1 year ago #

    Recheck your database info in wp-config.php file.

  4. xportrecords@gmail.com
    Member
    Posted 1 year ago #

    ok, but now I have another problem. I enter the home site and then other pages do not let me enter, me error 404

  5. govpatel
    Member
    Posted 1 year ago #

    Post your url so we can see what the problem is.

  6. xportrecords@gmail.com
    Member
    Posted 1 year ago #

    ok

  7. xportrecords@gmail.com
    Member
    Posted 1 year ago #

  8. govpatel
    Member
    Posted 1 year ago #

    Reset you permalinks in Settings>>>>Permalinks

  9. xportrecords@gmail.com
    Member
    Posted 1 year ago #

    It was in the permalinks and later by default, thank you very much for the information

  10. govpatel
    Member
    Posted 1 year ago #

    You are welcome.

  11. adewalelagos
    Member
    Posted 1 year ago #

    don't know if it's ok i join this thread, am also getting the error establishing database connection with my site hosted with bluehost even though the credentials of my wp-config is correct i still get the error establishing database connection.

  12. BH_WP_Guru
    Member
    Posted 1 year ago #

    @adewalelagos: Go ahead and try everything you can see written above, but if it doesn't help then you should make your own new topic instead of writing on this 'resolved' one.

  13. photochoppy
    Member
    Posted 1 year ago #

    Hi,
    I got the same error. I call the hosting support and I got this «Upon reviewing your account, I show that these addresses are different because you have a redirect in your .htaccess file for premiumvillacollection.com that leads elswhere. You will need to remove this redirect. Additionally, the database error is appearing because the connection string does not contain the correct log in credentials for the database. You will need to locate this information and add the updated credentials. »
    I checked the wp-config.php file and the record are ok.
    Can anyone tell me what do exactly?
    thank you

Topic Closed

This topic has been closed to new replies.

About this Topic