Tuesday, September 6, 2022

Fix Mysql table crashed in wordpress

Since this morning I get this below error:
Warning: mysqli_query(): (HY000/1194): Table 'wp_postmeta' is marked as crashed and should be repaired in C:\xampp\htdocs\wp_project\wp-includes\wp-db.php on line 2056

After that I logged into mysql terminal:
mysql -uroot -p

Then select database:
use wp_project

Then run the below command to fix the target table:
REPAIR TABLE wp_project.wp_postmeta;

And it solves the issue 👍

No comments:

Post a Comment

Workflow of WordPress project in a team with Git

1. We should not push any Wordpress core folders or files to github. 2. Only push custom theme and custom plugin into github. 3. So, in this...