Hello @Sahil,
The ‘Error establishing a database connection’ issue can be caused by incorrect database information in your WordPress settings, a corrupt database, or an unresponsive database server.
You should check the database settings in the wp-config.php file or contact your hosting provider’s support team.
Additionally, we recommend reading this article for further information: https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/.
We are confident that your hosting provider will be able to resolve this issue for you.
Best Regards,
8Theme’s Team