메뉴 건너뛰기

조회 수 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. No Image 23Dec
    by
    2016/12/23 Views 5500 

    mysql 날짜 관련 date_add, date_format

  2. No Image 23Dec
    by
    2016/12/23 Views 5498 

    DISTINCT와 ALL

  3. No Image 23Dec
    by
    2016/12/23 Views 5440 

    IMPORT

  4. No Image 12Apr
    by
    2017/04/12 Views 5392 

    [MySQL] 백업 및 복구

  5. No Image 21Nov
    by
    2017/11/21 Views 5388 

    두 테이블을 비교하여 한쪽테이블에는 있지만 다른 테이블에는 없는 값을 뽑아내보자!

  6. No Image 12Apr
    by
    2017/04/12 Views 5365 

    mySQL 에서 날자표현 방법

  7. No Image 12Apr
    by
    2017/04/12 Views 5352 

    MySQL JOIN 걸어서 UPDATE 하기

  8. Mysql Join 해부(Left, Right, Outer, Inner Join)

  9. No Image 12Apr
    by 조쉬
    2017/04/12 Views 5330 

    MySQL 손상된 테이블 복구

  10. flush privileges 명령어

  11. No Image 12Apr
    by
    2017/04/12 Views 5277 

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

  12. No Image 12Apr
    by
    2017/04/12 Views 5252 

    MySQL root 패스워드 분실시

  13. No Image 12Apr
    by
    2017/04/12 Views 5105 

    MySQL의 alter table 명령어 모음

  14. No Image 26Mar
    by
    2021/03/26 Views 5088 

    mysql 포트 바꾸기, 외부에서 접속하기

  15. No Image 16Nov
    by
    2017/11/16 Views 5076 

    다른 테이블 데이터를 원하는 테이블에 업데이트 시키기

  16. No Image 12Apr
    by
    2017/04/12 Views 5071 

    백업시 캐릭터셋(charset) 지정하기

  17. No Image 12Apr
    by
    2017/04/12 Views 5008 

    MySQL 계정생성하기

  18. MySQL Shard 데이터 재분배

  19. No Image 22Dec
    by
    2017/12/22 Views 4940 

    테이블 파티셔닝

  20. No Image 08Jan
    by
    2019/01/08 Views 4431 

    MySQL ORDER BY 조건별 필드 및 ASC DESC

Board Pagination Prev 1 2 3 4 5 6 7 Next
/ 7

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

© k2s0o1d4e0s2i1g5n. All Rights Reserved