¿øÀÎ : À̹ÌÁö Àüü¹é¾÷ÀÌÈÄ VMÀ» °Á¦·Î Á¾·áÇÏ¸é¼ ¹ß»ýÁõ»ó : DB Å×À̺íÀÌ ¼Õ»óµÇ¼ µ¥ÀÌŸ¸¦ ÀÐÀ»¼ö ¾øÀ½
# MYSQL ¿¡·¯ ¸Þ¼¼Áö
# tail -n100 -f /usr/local/mysql/data/localhost.err
131211 12:38:47 [ERROR] /usr/local/mysql/bin/mysqld: Table './XXXXXX/xe_counter_log' is marked as crashed and should be repaired
131211 12:38:47 [ERROR] /usr/local/mysql/bin/mysqld: Table './XXXXXX/xe_counter_log' is marked as crashed and should be repaired
131211 12:38:47 [ERROR] /usr/local/mysql/bin/mysqld: Table './XXXXXX/xe_counter_log' is marked as crashed and should be repaired
131211 12:38:48 [ERROR] /usr/local/mysql/bin/mysqld: Table './XXXXXX/xe_counter_log' is marked as crashed and should be repaired
131211 12:38:48 [ERROR] /usr/local/mysql/bin/mysqld: Table './XXXXXX/xe_counter_log' is marked as crashed and should be repaired
131211 12:38:48 [ERROR] /usr/local/mysql/bin/mysqld: Table './XXXXXX/xe_counter_log' is marked as crashed and should be repaired
131211 12:38:48 [ERROR] /usr/local/mysql/bin/mysqld: Table './XXXXXX/xe_counter_log' is marked as crashed and should be repaired
131211 12:38:48 [ERROR] /usr/local/mysql/bin/mysqld: Table './XXXXXX/xe_counter_log' is marked as crashed and should be repaired
131211 12:38:49 [ERROR] /usr/local/mysql/bin/mysqld: Table './XXXXXX/xe_counter_log' is marked as crashed and should be repaired
131211 12:38:49 [ERROR] /usr/local/mysql/bin/mysqld: Table './XXXXXX/xe_counter_log' is marked as crashed and should be repaired
131211 12:38:50 [ERROR] /usr/local/mysql/bin/mysqld: Table './XXXXXX/xe_documents' is marked as crashed and should be repaired
131211 12:38:50 [ERROR] /usr/local/mysql/bin/mysqld: Table './XXXXXX/xe_counter_log' is marked as crashed and should be repaired
131211 12:38:50 [ERROR] /usr/local/mysql/bin/mysqld: Table './XXXXXX/xe_counter_log' is marked as crashed and should be repaired
ÇØ´ç Database ·Î µé¾î°¡¼
mysql> repair table xe_counter_log;
+--------------------------+--------+----------+----------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+--------------------------+--------+----------+----------------------------------------------+
| XXXXXX.xe_counter_log | repair | warning | Number of rows changed from 144945 to 144912 |
| XXXXXX.xe_counter_log | repair | status | OK |
+--------------------------+--------+----------+----------------------------------------------+
2 rows in set (25.41 sec)
¡Ø Å×À̺íÀÌ ¼Õ»óµÇ´Â Áõ»óÀº ¾Æ·¡¿Í °°Àº ¿¹±âÄ¡ ¾Ê´Â ¹®Á¦·Î ÀÎÇÏ¿© ¹ß»ýµË´Ï´Ù.
- tbl_name.frm º¯°æ¿¡ ´ëÇÑ ¶ôÀÌ °É¸° °æ¿ì
- tbl_name.MYI (Errcode: nnn) ÆÄÀÏÀ» ãÀ» ¼ö ¾ø´Â °æ¿ì
- ¿¹»óÄ¡ ¸øÇÑ ÆÄÀÏ Á¾·á
- ÀúÀå ÆÄÀÏÀÇ Ãæµ¹
- table handler·Î ºÎÅÍ ¿À·ù nnnÀ» ¹Þ¾ÒÀ» ¶§