码迷,mamicode.com
首页 > 其他好文 > 详细

myisam表修复

时间:2017-03-14 18:35:00      阅读:179      评论:0      收藏:0      [点我收藏+]

标签:--   one   nbsp   引擎   wro   isa   number   -o   ext   

 数据库myisam引擎表损坏修复步骤:
 
1.进入到表目录文件下
# myisamchk -of comments.MYI
2.
# myisamchk -r  comments.MYI
3.
# myisamchk comments.MYI
4.进入数据库库中
mysql> repair table cms.comments ;
 
mysql> repair table cms.comments ;
+--------------+--------+----------+-------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+--------------+--------+----------+-------------------------------------------------+
| cms.comments | repair | info | Wrong bytesec: 0- 0- 0 at 69690360; Skipped |
| cms.comments | repair | warning | Number of rows changed from 578565 to 578564 |
| cms.comments | repair | status | OK |
+--------------+--------+----------+-------------------------------------------------+
3 rows in set (2.98 sec)

mysql>check tabl cms.comments ;
+--------------+-------+----------+----------+
| Table | Op | Msg_type | Msg_text |
+--------------+-------+----------+----------+
| cms.comments | check | status | OK |
+--------------+-------+----------+----------+
1 row in set (0.98 sec)
 
--完结--屡试不爽-- 
 

myisam表修复

标签:--   one   nbsp   引擎   wro   isa   number   -o   ext   

原文地址:http://www.cnblogs.com/cuisi/p/6549832.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!