Every day you surf through some website. Be it to find information or any other reason. While surfing, you would have come across some site, which when opened, says “Error Establishing Database Connection.” You cannot surf through that website. For internet surfers this error means nothing, they will just go to another site to access what they’re looking for. But for that website owner, this error is a calamity or curse, or you can also say their worst fear.
#1. Problem with Login Credential:
#2. Troubleshoot the corrupt database:
3. Save changes and close the file. This will enable the feature through which you can Optimize and Repair the database.
4. After the feature is enabled, go to www.yoursite.com/wp-admin/maint/repair.php and Click on “Repair Database”.