관리자 패스워드 설정

쉘에서 직접 설정 >
mysqladmin -u root -p password new-password

클라이언트 이용 >
mysql -u root mysql
mysql> update user set password = password('new-password') where user = 'root';
mysql> flush privileges;

set password를 이용하여 root 암호 설정
mysql> set password for root = password('new-password');


일반 사용자 추가
mysql> grant all privileges on dbuser.* to dbuser@localhost identified by 'password' with grant option;

데이터베이스에 권한 추가
mysql> GRANT ALL on DB명.* TO id@'localhost' ;
mysql> GRANT ALL on DB명.* TO id;
mysql> GRANT ALL on DB명.* TO id@'xxx.xxx.xxx.%';

1: 로컬접속만 허용
2: 어떤 호스트던지 접속 허용
3: 지정한 대역의 IP 로부터의 접속만 허용

mysql> FLUSH PRIVILEGES;



mysql 4.1 > mysql.5.0

Posted 2008. 10. 20. 09:46 by linn

기존 freebsd 를 사용하던 서버를 centOS 로 대체하면서 어플리케이션들 역시 마이그레이션중이다.

centos 에 기본 패키지로 설치뒨 mysql 5.x 로 기존 4.x 에서 사용하던 DB 를 가져오려 하는데 한글 인코딩 문제로 헤매는중.. mysql 은 다 좋은데 인코딩 문제때문에 항상 새로운 버젼이 나올때마다 삽질을 좀 하게 된다. 비영어권들에서 항상겪는 문제.. ㅠㅠ




일단 my.cnf 의 mysqld 블럭에

skip-character-set-client-handshake
default-character-set=euckr

를 추가하는것으로 해결.


CentOS 5.2 설치.

Posted 2008. 10. 17. 12:46 by linn

예전에 하드가 나가서 놀고있던 서버에 AS 받은 하드 설치후 CentOS 5.2 설치.
SCSI 320GB x2..

기존의 db2 서버에 있던걸 이전할 계획.


« PREV : 1 : 2 : 3 : 4 : 5 : 6 : 7 : ··· : 78 : NEXT »