Table is marked as crashed and should be repaired

Problem:

===

I am getting this error in wordpress phpMyadmin

#145 – Table ‘./DB_NAME/wp_posts’ is marked as crashed and should be repaired

My website is currently down because of this.

=== Solution ===

  1. Access Phymyadmin and select the following option given in the screenshot

2. Select all the tables with “Repair Table” option selected in the dropdown and click “OK” button