2009년 7월 19일 일요일

mysqlmanager 1

①/etc/mysqlmanger.passwd파일 생성
mysqlmanager를 동작시키기위해서는 패스워드 파일이 필요하다.
패스워드 작성은 다음과 같다.

사용자와 패스워드 작성
shell$ ./bin/mysqlmanager --passwd
Creating record for new user.
Enter user name: mycom
Enter password: pass
Re-type password: pass
mycom:*568F812313123123131312312312

이처럼 --passwd옵션을 사용하면 사용자명과 패스워드를 물어본다.
사용자명과 패스워드를 입력하면 예 처럼 "mycom:*568F812313123123131312312312"라는 문자열을 볼수 있다.
이것을 패스워드 파일에 추가하면 되는 것이다.

실제로는 다음과 같이 조작하면 필요한 정보가 패스워드 파일에 추가된다.

사용자와 패스워드를 패스워드 파일에 추가
shell$ ./bin/mysqlmanager --passwd >> /etc/mysqlmanager.passwd
Creating record for new user.
Enter user name: mycom
Enter password: pass
Re-type password: pass