You can also fix crashed tables from the command line (which is quicker and less risky than using phpMyAdmin) with the following commands:
1. SSH into your server and connect to MySQL:
mysql -u dbname -p dbusername
2. Enter your database password when prompted.
3. Check that the posts table has indeed crashed (you’ll get a message telling you it has):
check table wp_posts;
4. Repair the posts table:
repair table wp_posts;