# mysqldump -uroot -p test> /var/lib/mysql/test.sql
Enter password:
mysqldump: Error 1194: Table 'log' is marked as crashed and should be repaired when dumping table `log` at row: 8521321
# mysql -uroot -p
mysql> check table log;
+---------------+-------+----------+----------------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+---------------+-------+----------+----------------------------------------------------------+
| test.log | check | warning | 3 clients are using or haven't closed the table properly |
| test.log | check | error | Found wrong packed record at 1049886676 |
| test.log | check | error | Corrupt |
+---------------+-------+----------+----------------------------------------------------------+
3 rows in set (38.94 sec)
mysql> repair table log;
+---------------+--------+----------+-------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+---------------+--------+----------+-------------------------------------------+
| test.log | repair | info | Found wrong packed record at 1049886676 |
| test.log | repair | warning | Number of rows changed from 0 to 10540321 |
| test.log | repair | status | OK |
+---------------+--------+----------+-------------------------------------------+
3 rows in set (6 min 45.35 sec)
mysql> check table log;
+---------------+-------+----------+----------+
| Table | Op | Msg_type | Msg_text |
+---------------+-------+----------+----------+
| test.log | check | status | OK |
+---------------+-------+----------+----------+
1 row in set (36.82 sec)
'MYSQL' 카테고리의 다른 글
ERROR 1064 (42000) (1) | 2024.06.27 |
---|---|
ERROR 1143 (0) | 2024.06.24 |
mysql bin 로그 삭제 하기 (0) | 2024.06.17 |
REPLICATION ERROR 1062 (0) | 2024.02.21 |
TABLE, INDEX, 권한 조회 (0) | 2024.02.21 |