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; ==> 테이블 복원

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

===========================
김기자 블로그 최근 문서 테이블 오류나서 repair 한방으로 모두 복구! 휴우~