WordPress Error Establishing A Database Connection

Suddenly this morning around 11AM, 16th August 2021, my awesomegrasp.com is not reachable with error message of error establishing a database connection.

wordpress error establishing a database connection
wordpress error establishing a database connection
  • From cPanel, I check my database is still up and running.
  • Database username and password is correct.
  • My other website is still running (means my hosting is up and running as it i shared hosting).

Error Explanation at wp-admin

I go to wp-admin and the page said one of the tables is broken and to fix it I need to enable below code at wp-configs.php:

wordpress error establishing a database connection - wp allow repair
wordpress error establishing a database connection – wp allow repair

Run Repair Tables

After enabled WP_ALLOW_REPAIR, I run repair tables.

wordpress error establishing a database connection - repair database
wordpress error establishing a database connection – repair database

WordPress List Down The Repair Status

wordpress error establishing a database connection - database repair results
wordpress error establishing a database connection – database repair results

Remove WP_ALLOW_REPAIR

After remove WP_ALLOW_REPAIR, my website is up again.

My worry whether this is possible hacks in my wordpress installation.