mysql error log 顯示以下訊息
210203 9:20:44 [ERROR] /usr/local/mysql/libexec/mysqld: Table './mydb/mytable1' is marked as crashed and should be repaired
210203 9:20:44 [Warning] Checking table: './mydb/mytable1'
解決方式
# mysqlcheck -u root -p --repair mydb mytable1
其他使用方式
Usage: mysqlcheck [OPTIONS] database [tables]
OR mysqlcheck [OPTIONS] --databases DB1 [DB2 DB3...]
OR mysqlcheck [OPTIONS] --all-databases
預設值
-r, --repair Can fix almost anything except unique keys that aren't unique.
文章標籤
全站熱搜
留言列表