메뉴 닫기

mysql table repair 하기

 

먼저 root나 해당 DB 설정권한 을 가지고 있는 계정으로 mysql 접속을합니다.

전 test 라는 db로 진행해보겠습니다.

 

mysql> use test
Database changed
mysql> check table xe_session;   <<<테이블을 확인합니다.

+——————–+——-+———-+———————————————————-+
| Table | Op | Msg_type | Msg_text |
+——————–+——-+———-+———————————————————-+
| test.xe_session | check | warning | Table is marked as crashed |
| test.xe_session | check | warning | 3 clients are using or haven’t closed the table properly |
| test.xe_session | check | error    | Record at pos: 194407584 is not remove-marked |                   <<<<<<<<<<<
| test.xe_session | check | error | record delete-link-chain corrupted |                                          <<<<<<<<<<<<
| test.xe_session | check | error | Corrupt |                                                                                   <<<<<<<<<<<<<<<< 에러 메시지가 보이죠?
+——————–+——-+———-+———————————————————-+

 

mysql> repair table xe_session;      <<테이블을 복구합니다.
+——————–+——–+———-+——————————————–+
| Table | Op | Msg_type | Msg_text |
+——————–+——–+———-+——————————————–+
| test.xe_session | repair | warning | Number of rows changed from 28841 to 28842 |
| test.xe_session | repair | status | OK |
+——————–+——–+———-+——————————————–+

테이블 복구가 완료 되었습니다.

 [polldaddy rating=”7739789″]

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x