IDO老徐,在深圳,某上市公司质量部负责人,干了十二年软件测试,公号"简尚" ,博客isTester.com ,关注「软件测试从业者综合能力提升」,微信957863300

mysql报错Table is marked as crashed and should be repaired 的解决办法

上一篇 / 下一篇  2020-11-14 13:41:34 / 个人分类:linux

前几天,老徐的istester博客突然挂了;收到了用户的反馈才知道 ;

!Lw8SM I5X0

折腾了几次没发现原因;51Testing软件测试网z:g;D3bHp:ox.N

后面查了下数据库,才发现,是库出问题了;51Testing软件测试网QVen*xW"]"Wx*Vc


51Testing软件测试网 \!I/K}/l0k/Tx?.X

如下是报错内容 和解决思路 ;

!qH E!FL0


/AF3] \3B O0

~2`&n3H%`"?3SeV0

mysql> select * from isTeter.com ;

Q5tdK#^6\N;P,rr(I1bu0

ERROR 145 (HY000): Table './isTeter_Idoxu/isTeter.com' is marked as crashed and should be repaired

Hfs,n-rgxI0


Dz8~ @%b:u%M0

mysql> check table isTeter.com ;

mGY,J \ H#yM0

+-----------------------------+-------+----------+------------------------------------------------------------+

1w&e;cY!p`0

| Table                       | Op    | Msg_type | Msg_text                                                   |51Testing软件测试网"yN*o} aa!RJw{

+-----------------------------+-------+----------+------------------------------------------------------------+51Testing软件测试网:z8_CQ5\n-s.]

| isTeter_Idoxu.isTeter.com | check | warning  | Table is marked as crashed                                 |51Testing软件测试网7^ef*W;OOq&hDE

| isTeter_Idoxu.isTeter.com | check | warning  | 102 clients are using or haven't closed the table properly |

V`R^!S0

| isTeter_Idoxu.isTeter.com | check | error    | Checksum for key:  4 doesn't match checksum for records    |

rN,H Q+D |%c ~0

| isTeter_Idoxu.isTeter.com | check | error    | Corrupt                                                    |51Testing软件测试网6v g'aM.VE:V4_

+-----------------------------+-------+----------+------------------------------------------------------------+

L\P)RuO)[S)P0

4 rows in set (0.31 sec)

{naD P#L1t Xx0


51Testing软件测试网2xAtE c"UG!?.w\rw

mysql> repair table isTeter.com;

zI9aZ` B0

+-----------------------------+--------+----------+----------+

8Zz&zrK z&oxI(bn0

| Table                       | Op     | Msg_type | Msg_text |51Testing软件测试网I'tl9@"jd+C9V2x

+-----------------------------+--------+----------+----------+51Testing软件测试网S?#T`:e p&\O z

| isTeter_Idoxu.isTeter.com | repair | status   | OK       |51Testing软件测试网 X,E@8OhTGG

+-----------------------------+--------+----------+----------+

!ql*G*a2FR0

1 row in set (0.15 sec)

+@&ICR*DI0


G1Y Vi&Mk,cTY$y0

mysql> check table isTeter.com;51Testing软件测试网]1|:ELrOY(W:x"l _ G

+-----------------------------+-------+----------+----------+51Testing软件测试网e;n8C"n]

| Table                       | Op    | Msg_type | Msg_text |

$i3s^t\aq0

+-----------------------------+-------+----------+----------+

%~l&P,L"E9q;B-S L0

| isTeter_Idoxu.isTeter.com | check | status   | OK       |51Testing软件测试网-xnMa SN~-Xt

+-----------------------------+-------+----------+----------+

}^ |0p7Tet0

1 row in set (0.01 sec)

5r#v3z!?1z?0


51Testing软件测试网0sz9[.udHQn0Lo,Rm


%drc5?3\MQ8h0

搞定 

.o9a2_+I$os0

TAG:

 

评分:0

我来说两句

xuquan

xuquan

IDO老徐,坐标深圳,测试经理,干了十年测试,公号"简尚" ,个人博客isTester.com ,关注「软件测试从业者综合能力提升」,微信957863300

日历

« 2024-04-20  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 914099
  • 日志数: 427
  • 建立时间: 2012-06-04
  • 更新时间: 2022-02-23

RSS订阅

Open Toolbar