메뉴 건너뛰기

조회 수 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. mysql table 값 변경 mariadb 테이블 값 변경

    Date2023.01.12 Views86
    Read More
  2. MYSQL IN&BETWEEN&NULL&예제&FROM절 문제3

    Date2021.03.27 Views105
    Read More
  3. FORMAT 문법 사용 하기(숫자 자리수 나타내기)

    Date2023.01.10 Views108
    Read More
  4. CASE 문법 사용 하기

    Date2023.01.10 Views111
    Read More
  5. MYSQL any&all&in&예제& WHERE 절 문제4

    Date2021.03.27 Views112
    Read More
  6. MYSQL Groupby & having 예제 문제 6

    Date2021.03.27 Views118
    Read More
  7. 데이터베이스별 / 테이블별 용량 확인 하기

    Date2023.01.10 Views118
    Read More
  8. no exists, not in 을 이용한 조건에 만족하지 않는 것들 구하기, 둘의 차이점

    Date2021.03.26 Views125
    Read More
  9. fulltext 관련 글

    Date2021.03.26 Views125
    Read More
  10. MYSQL order by 예제&문제 7

    Date2021.03.27 Views126
    Read More
  11. column의 정보 중에서 column 설명(column_comment)

    Date2021.03.26 Views129
    Read More
  12. MYSQL FULLTEXT INDEX & PARTION 검색기능향상&파티션

    Date2021.03.27 Views131
    Read More
  13. mysql-bin(binary log)파일 정리 및 삭제

    Date2023.01.12 Views132
    Read More
  14. binlog 조회 / 삭제 / 보관 기간 설정

    Date2023.01.10 Views135
    Read More
  15. MYSQL 부속질의어 예제&문제 9

    Date2021.03.27 Views136
    Read More
  16. MYSQL 기초문법&예제&문제 2

    Date2021.03.27 Views139
    Read More
  17. MYSQL 통계 함수 SUM AVG MAX MIN 예제 문제 5

    Date2021.03.27 Views139
    Read More
  18. MYSQL select 명령문의 조합 &union 예제&문제 8

    Date2021.03.27 Views140
    Read More
  19. 엑셀로 되어있는 부분 db로 import하는 방법

    Date2020.07.28 Views144
    Read More
  20. MariaDB can't create test file lower-test

    Date2023.02.16 Views144
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 Next
/ 7

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

© k2s0o1d4e0s2i1g5n. All Rights Reserved