강좌
클라우드/리눅스에 관한 강좌입니다.
데이터베이스 분류

일반적인 MYSQL의 에러원인을 확인하는 perror에 대하여

작성자 정보

  • 구돌 작성
  • 작성일

컨텐츠 정보

본문

일반적인 MYSQL의 에러원인을 확인하는 perror에 대하여

 

MYSQL perror명령어는 MYSQL에서 발생하는 에러코드에 대한 원인을 확인하는 것입니다. 

 

 

  , 리눅스 서버의 MYSQL 데이터베이스를 관리하다 보면 에러와 함께 에러코드번호를 만나는 경우가 종종 있습니다. 

 

 

 MYSQL은 에러가 발생하면 에러코드번호를 리턴해 주게 됩니다. 

 

 

 따라서 에러의 정확한 원인분석을 위하여 에러코드번호가 어떤 에러를 의미하는가를 확인하는 용도로 perror을 사용합니다. 

 

 

 

 

명령어위치 : /usr/local/mysql/bin/perror

 

사용형식   : perror [옵션] [에러코드]

 

다음과 같이 옵션과 에러코드를 지정하지않고 그냥 ./perror이라고만 하시면 perror의 사용방법을 보여줍니다. 

 

 

 

 

[root@file bin]# pwd

/usr/local/mysql/bin

[root@file bin]#

[root@file bin]# ./perror

./perror Ver 2.9, for pc-linux (i686)

This software comes with ABSOLUTELY NO WARRANTY. This is free software,

and you are welcome to modify and redistribute it under the GPL license

 

Print a description for a system error code or an error code from

a MyISAM/ISAM/BDB table handler.

If you want to get the error for a negative error code, you should use

-- before the first error code to tell perror that there was no more options.

 

Usage: ./perror [OPTIONS] [ERRORCODE [ERRORCODE...]]

  -?, --help          Displays this help and exits.

  -I, --info          Synonym for --help

  -s, --silent        Only print the error message

  -v, --verbose       Print error code and message (default).

  -V, --version       Displays version information and exits.

 

Variables (--variable-name=value)

and boolean options {FALSE|TRUE}  Value (after reading options)

--------------------------------- -----------------------------

verbose                           TRUE

[root@file bin]#

 

 

 

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,035 명
  • 현재 강좌수 :  35,795 개
  • 현재 접속자 :  176 명