mysql

#1194 - Table is marked as crashed and should be repaired

은둔한량 2013. 9. 2. 09:24
반응형

select * from baptinfo;
했을 때 아래와 같은 테이블 손상메세지가 나타난다면

#1194 - Table 'baptinfo' is marked as crashed and should be repaired

# mysql -u root -p
Enter password:

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 30183
Server version: 5.0.37-log Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>
mysql> use realDB;
Database changed
mysql> analyze table baptinfo;
+-----------------+---------+----------+----------+
| Table | Op | Msg_type | Msg_text |
+-----------------+---------+----------+----------+
| realDB.baptinfo | analyze | status | OK |
+-----------------+---------+----------+----------+
1 row in set (0.00 sec)

mysql> repair table baptinfo;
+-----------------+--------+----------+----------+
| Table | Op | Msg_type | Msg_text |
+-----------------+--------+----------+----------+
| realDB.baptinfo | repair | status | OK |
+-----------------+--------+----------+----------+
1 row in set (0.04 sec)

테이블이 복구되었으므로 위의 테이블 읽기 쿼리를 다시 실행해 본다.

 

-- 성락교회 수정 2013. 9. 2

mysql> repair table g4_visit ;
+---------------+--------+----------+------------------------------------------------------+
| Table         | Op     | Msg_type | Msg_text                                             |
+---------------+--------+----------+------------------------------------------------------+
| snch.g4_visit | repair | info     | Found block that points outside data file at 9756656 |
| snch.g4_visit | repair | status   | OK                                                   |
+---------------+--------+----------+------------------------------------------------------+
2 rows in set (0.85 sec)

 

 

반응형