Skip to content
컴퓨터잡담
2009.11.24 14:16

mysql 접속불가시 재부팅

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

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

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

mysql 접속불가시 재부팅



mysqladmin ping > msg.txt

type msg.txt | find /i "alive"

if errorlevel 0 echo "양호" errorlevel = %errorlevel%

if errorlevel 1 shutdown -r





mysqladmin ping > msg.txt                                  -  mysqladmin ping 결과를 msg.txt에 담음.

type msg.txt | find /i "alive"                                  -  msg.txt 파일안에 alive가 있는지 확인.

if errorlevel 0 echo "양호" errorlevel = %errorlevel%  -  에러값이 0 인 경우 실행

if errorlevel 1 shutdown -r                                    -  에러값이 1 인 경우 실행(재부팅)


의아한 건 

에러값이 0이면 0의 조건만 실행되는데

에러값이 1이면 0, 1의 조건이 둘 다 실행됨.


이유는 모르겠슴.








로그인 후 댓글쓰기가 가능합니다.

?

http://urin79.com

우린친구블로그

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소