Mysql error 1194 - Table '' is marked as crashed and should be repaired solution

This article mainly explains: Mysql error 1194 - Table '' is marked as crashed and should be repaired solution.
Date: August 9, 2023
Author: Ren Congcong

Specific phenomenon

Explanation: When executing sql statement query or retrieving related data, the following error content will appear:

1194 - Table 'xxxx你的表名' is marked as crashed and should be repaired

Main reasons and solutions

The main reason for this error may be that the server was forced to restart once before, or mysql was suddenly stopped, but the user's data was added, and the data structure of the table was damaged.

Many people on the Internet say that it is enough to restart mysql, but in fact it is not the correct way to report the error of my sister.

Solution

Pre-preparation: Make a backup of the error table, and execute the following repair command after the backup is complete:

REPAIR TABLE  your_table_name

After the execution is complete, this error reporting problem can be solved.

Guess you like

Origin blog.csdn.net/hj960511/article/details/132199766