萬盛學電腦網

 萬盛學電腦網 >> 數據庫 >> mysql教程 >> is marked as crashed and last (automatic?) repair解決辦法

is marked as crashed and last (automatic?) repair解決辦法

本文章來給大家介紹我們在修復表時提示Error: Table \'./db_name/table_name\' is marked as crashed and last (automatic?) repair failed的解決辦法。

修復數據表操

MYSQL數據表出現問題,提示:
Error: Table './db_name/table_name' is marked as crashed and last (automatic?) repair failed

修復數據表操作

1、service mysqld stop;
2、cd /var/lib/mysql/db_name/
3、myisamchk -r tablename.MYI (修復單張數據表)
myisamchk -r *.MYI (修復所有數據表)

注意:操作第三步前一定要把mysql服務停掉。

4. mysqlcheck -o -r 數據庫名稱 -p

copyright © 萬盛學電腦網 all rights reserved