mySQL 자동 로딩에 관하여..
글쓴이: devin0129 / 작성시간: 수, 2003/07/09 - 7:39오후
책을 보고 APM을 설치하고있습니다.
시작시 자동으로 SQL데몬을 로딩하려면, /etc/rc.d/rc.local 파일을
편집기로 열어
if [-f /usr/local/mysql/bin/safe_mysqld ];then
/usr/local/mysql/bin/safe_mysqld &
fi
를 추가하였습니다. 그리고 리붓을 하여 ps aux하니 SQL데몬이 없더군요..
하여, /usr/local/mysql(<-제가 SQL설치한 디렉토리)에 들어가서
./bin/safe_mysqld &하니 데몬이 돌아가더군요..
책에서 설정하라는 데로 설정을 했는데, 적용이 안되니, 알수가 없군요..
에러 매세지라도 나오면 추측이라도 해볼텐데...
답변 부탁드립니다.
즐거운 저녁 되세요
Forums:
chkconfig를 이용하세요
mysql이 깔린경로가 /usr/local/mysql이라고 가정할때
/usr/local/mysql/share/mysql/mysql.server 파일을
/etc/init.d/mysqld 라는 이름으로 카피한후(이름은 편한대로 주세요)
chkconfig로 데몬 등록 시킬수가 있습니다.
사용방법은
x환경은 level5 console환경은 level3인데요
콘솔에서 등록시킨다고 했을때
chkconfig --level 3 mysqld on 하시면 됩니다.
ntsysv로 확인해보시구 체크 되있나 보시구요
리부트 하면 데몬이 뜰꺼에요~
:-)
아직 멀었다.. 난 여전히 시작점
감사합니다.^^
친절하신 답변 감사합니다.
즐거운 저녁 되시구요.
댓글 달기