컴퓨터잡담
2009.11.24 14:16

mysql 접속불가시 재부팅

조회 수 12088 추천 수 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의 조건이 둘 다 실행됨.


이유는 모르겠슴.








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

?

List of Articles
번호 분류 제목 날짜 조회 수
2344 Fatal error: Call to a member function get() on null in C:\AutoSet9\public_html\files\cache\template_compiled\4cfb1455260434e25c468dc186e72b58.compiled.php on line 101