mysql table 복구 예
mysql> check table myboard;
+---------------------+-------+----------+--------------------------------------
| Table | Op | Msg_type | Msg_text
+---------------------+-------+----------+--------------------------------------
| sysdocu.myboard | check | warning | Table is marked as crashed
| sysdocu.myboard | check | warning | 1 client is using or hasn't closed th
| sysdocu.myboard | check | error | Size of datafile is: 8323072
| sysdocu.myboard | check | error | Corrupt
+---------------------+-------+----------+--------------------------------------
4 rows in set (0.02 sec)
mysql> repair table myboard;
+---------------------+--------+----------+-------------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+---------------------+--------+----------+-------------------------------------------------------+
| sysdocu.myboard | repair | info | Found block that points outside data file at 8322744 |
| sysdocu.myboard | repair | info | Found block with too small length at 8322772; Skipped |
| sysdocu.myboard | repair | status | OK |
+---------------------+--------+----------+-------------------------------------------------------+
3 rows in set (0.50 sec)
mysql> check table myboard;
+---------------------+-------+----------+----------+
| Table | Op | Msg_type | Msg_text |
+---------------------+-------+----------+----------+
| sysdocu.myboard | check | status | OK |
+---------------------+-------+----------+----------+
1 row in set (0.10 sec)
'리눅스 > MySQL' 카테고리의 다른 글
MySQL 원격에서 접속하기 (0) | 2015.01.16 |
---|---|
error while loading shared libraries: libmysqlclient.so.xx 등의 오류 (0) | 2015.01.16 |
mysql table 복구 방법 (0) | 2015.01.16 |
mysql 쿼리 실시간 확인하기 (0) | 2015.01.16 |
mysql 로그 안쌓이게 하는 방법 (0) | 2015.01.16 |