일거리/sql2009. 8. 14. 11:48

Table 'xxxxxxxx' is marked as crashed and should be repaired


웹 화면이 잘나 오다 어느순간 안나왔다.
디버깅 해보니...

----------------------------------------------------------------------------------

## 2007-10-31 14:55:48 [ERROR] ui.db.tid.SnmpTrafficTblForMySQL.selectToday
[SQL ERROR] java.sql.SQLException: Table './tid/tosnmptraffic_071030_7' is marked as crashed and should be repaired

----------------------------------------------------------------------------------


is marked as crashed and should be repaired..

테이블에 오류가 생긴건데 왜 생긴지는 모르겠다.. 원인을 찾아봐도 잘 안나온다.
아는 사람은 내게 삐삐좀 쳐주시길...


암튼 해결책은

DB에서
 > analyze table tableName; ==> 테이블에 대한 보고서 작성
 > repair table tableName; ==> 테이블 복원

 한번에 안될때도 있는듯하다.

 

 여러번 했는데도 복구가 안될때에는  myisamchk로 복구 해볼것.(DB 서버를 끄고 할것)

'일거리 > sql' 카테고리의 다른 글

[sql] Toad에서 script 얻는 방법  (1) 2009.08.14
[sql] 날짜 비교  (0) 2009.03.04
Posted by 달곰네두목곰