Error establishing a database connection

After I update the wordpress version, my website went down and it show "Error establishing a database connection" now. How can I fix it? Thanks

  • Nithin
    • Support Wizard

    Hi Easy,

    There could be various factors that could cause such an issue. Most common issues, are either if the database server is down in the hosting provider sides, or the MySQL settings are incorrect in the wp-config.php.

    Since this occurred after updating WordPress to latest version, please double check whether wp-config.php has the correct database details intact in there.

    If yes, then this could happen either due to one of the existing plugins, or the database got corrupted during update.

    Would recommend you to follow the mentioned article on how to troubleshoot this further:
    https://websitesetup.org/error-establishing-a-database-connection/

    Checking with your hosting provider should also help with bringing the site back up with ease. I hope this helps. Please let us know if you have any further query.

    Regards,
    Nithin

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.