Skip to content

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

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

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

mysql 복구하기

mysql> select * from SMHWINFO;
ERROR 1016: Can\'t open file: \'SMHWINFO.MYD\'. (errno: 145)

위와 같은 mysql 에러가 발생하면 mysql 테이블이 손상된 경우입니다.

MYD확장자를 가진 파일은 mysql data를 저장하는 파일입니다.
일단 DB를 내리고 MYD, MYI, frm 파일을 백업해둡니다.

(이경우의 백업은 파일 백업을 말하는것이다.)
그리고나서 myisamchk로 복구를 시도해봅니다.

killall mysqld ->mysql 데몬 죽이기
./myisamchk --safe-recorver /usr/local/mysql/data/DB명/복구할 테이블명

여기서 myisamchk 파일이 패스가 걸려있으면 아무곳에서나 실행이 가능하지만 아닌경우에는 mysql이 설치된 디렉토리의

bin 디렉토리 아래에 있습니다.

ex)/usr/local/mysql/bin/myisamchk

/usr/local/mysql/data 이 경로는 소스컴파일 할때 MYD가 저장될 디렉토리명을 data로 바꿔준 경우입니다.
소스컴파일 할때의 디폴트 설정은 /usr/local/mysql/var 로 되어있고, rpm 의 경우에는 /var/lib/mysql/ 입니다.


  1. mytop 으로 mysql 모니터링하기

    Date2009.06.25 ByADMINPLAY Views8734
    Read More
  2. MySQL Table 복구 - Got error 127 from storage engine

    Date2009.06.17 ByADMINPLAY Views8671
    Read More
  3. MySQL 데이터 정리후에도 용량변동이 없을 경우

    Date2009.12.31 ByADMINPLAY Views8661
    Read More
  4. InnoDB 와 MyISAM

    Date2008.12.14 ByADMINPLAY Views8593
    Read More
  5. mysql 백업

    Date2009.07.25 ByADMINPLAY Views8589
    Read More
  6. [MYSQL] Mysql 테이블 검사하기 & 복구하기

    Date2009.06.17 ByADMINPLAY Views8453
    Read More
  7. Mysql max_connection 늘리기

    Date2008.11.11 ByADMINPLAY Views8259
    Read More
  8. MySQL Replication

    Date2009.11.19 ByADMINPLAY Views8090
    Read More
  9. MySQL Commercial License

    Date2009.09.28 ByADMINPLAY Views7989
    Read More
  10. MySQL 최대성능 올리기

    Date2009.07.19 ByADMINPLAY Views7927
    Read More
  11. Mysql 비번 변경/비번분실시

    Date2009.06.29 ByADMINPLAY Views7890
    Read More
  12. InnoDB 에서 MyISAM 으로, 혹은 MyISAM 에서 InnoDB 로 DB 타입 변경 방법

    Date2013.11.08 ByADMINPLAY Views7839
    Read More
  13. Mysql 버전별 케릭터셋 지원여부 (euckr / utf-8)

    Date2008.11.04 ByADMINPLAY Views7834
    Read More
  14. MySQL Replication(복제)

    Date2009.11.19 ByADMINPLAY Views7792
    Read More
  15. mysql 테이블이 손상된 경우 myisamchk

    Date2008.10.30 ByADMINPLAY Views7669
    Read More
  16. MySQL 데이터베이스의 생성과 삭제

    Date2008.10.30 ByADMINPLAY Views7667
    Read More
  17. MySQL 테이블 복구하기 (쉴 프롬프트에서..)

    Date2008.11.11 ByADMINPLAY Views7456
    Read More
  18. mysql 자세한 복구 방법 #2

    Date2008.11.11 ByADMINPLAY Views7385
    Read More
  19. MySQL 4.1 이상에서 한글 사용

    Date2009.09.28 ByADMINPLAY Views7291
    Read More
  20. mysql root에 아무권한이 없어 작업이 불가능한 경우

    Date2008.11.11 ByADMINPLAY Views7186
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234