메뉴 건너뛰기

조회 수 5330 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

MySQL을 사용하다 보면 사용자의 실수 또는 기계적 결함, 테이블에 글쓰기 작업도중 서버의 무응답등으로 인해 테이블이 살짝 맛가는 경우가 있습니다. 이중 가장 많은 비중을 차지하는 부분이 테이블을 이용한 Insert, Update, Delete 작업 도중에 느려터진 서버가 모르쇄로 일관해서 테이블을 맛가게 하는 경우인데요..

[highbird~]# perror 126, 127, 132, 134, 135, 136, 141, 144, 145
MySQL error code 126: Index file is crashed
MySQL error code 127: Record-file is crashed
MySQL error code 132: Old database file
MySQL error code 134: Record was already deleted ( or record file crashed)
MySQL error code 135: No more room in record file
MySQL error code 136: No more room in index file
MySQL error code 141: Duplicate unique key or constraint on write or update
MySQL error code 144: Table is crashed and last repair failed
MySQL error code 145: Table is marked as crashed and should be repaired


에러코드가 위와 같다면 아래의 명령어로 복구가 가능합니다. ( 위의 코드는 쉘상에서 MySQL error code 를 출력해 본것입니다. ) 먼저 복구할 테이블이 있는 MySQL 계정으로 로그온합니다.

형식) analyze table [손상된 테이블 명]

mysql> analyze table bird_table;

위의 명령어를 입력하면 손상된 테이블의 보고서가 출력됩니다.

형식) repair table [손상된 테이블 명]

mysql> repair table bird_table;

위의 명령어로 손상된 테이블은 복구됩니다.


  1. 테이블 타입(Heap, MyIsam, InnoDB...) 변경하기

    Date2017.04.12 Views5272
    Read More
  2. MySQL 쿼리 결과 값 세로로 보기

    Date2017.04.12 Views6053
    Read More
  3. MySQL root 패스워드 분실시

    Date2017.04.12 Views5252
    Read More
  4. MySQL 에서 랜덤(random)으로 레코드 읽어오기

    Date2017.04.12 Views5727
    Read More
  5. MySQL 손상된 테이블 복구

    Date2017.04.12 Views5330
    Read More
  6. [MySQL] 백업 및 복구

    Date2017.04.12 Views5392
    Read More
  7. MySQL의 alter table 명령어 모음

    Date2017.04.12 Views5105
    Read More
  8. mySQL 에서 날자표현 방법

    Date2017.04.12 Views5365
    Read More
  9. MySQL에서 원격 IP 접속 허용하기

    Date2017.04.12 Views5621
    Read More
  10. MySQL에서 사용자 권한 주기 (grant 명령어)

    Date2017.04.12 Views5885
    Read More
  11. MySQL 계정생성하기

    Date2017.04.12 Views5008
    Read More
  12. 실수로 삭제한 mysql DB 복구방법

    Date2017.04.12 Views7316
    Read More
  13. IN 연산자

    Date2016.12.23 Views5809
    Read More
  14. 필드 변경, 추가, 삭제

    Date2016.12.23 Views6085
    Read More
  15. 데이타베이스 또는 테이블 정보

    Date2016.12.23 Views5534
    Read More
  16. 테이블 복사, 테이블 비우기

    Date2016.12.23 Views5783
    Read More
  17. IMPORT

    Date2016.12.23 Views5440
    Read More
  18. 덤프할때 한글깨짐 해결

    Date2016.12.23 Views5635
    Read More
  19. Create Procedure

    Date2016.12.23 Views6012
    Read More
  20. 테이블 체크, 백업

    Date2016.12.23 Views7478
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 Next
/ 7

하단 정보를 입력할 수 있습니다

© k2s0o1d4e0s2i1g5n. All Rights Reserved