Mysql 5 계정 추가
페이지 정보
작성자 JMStudy 작성일09-08-28 11:48 조회7,972회 댓글0건본문
1. DB 추가
mysql> insert into db values('localhost','testdb','testuser','y','y','y','y','y','y','n','y','y','y','y','y','y','y','y','n','n','y','y');
2. USER 추가
mysql> insert into user values('localhost', 'testuser', password('userpass'),'Y','Y','Y','Y','Y',' Y ',' Y',' Y ',' Y',' Y ',' Y',' Y ',' Y',' Y',' Y',' Y',' Y ',' Y',' Y',' Y ',' Y',' Y',' Y',' Y ',' Y',' Y',' Y',' Y','','',' ','',' 0 ','0 ',' 0 ','0');
3. 변경사항 적용
mysql> flush privileges;
1.계정추가
INSERT INTO user (Host, User, Password) VALUES ('localhost', '계정아이디', password('비밀번호'));
FLUSH privileges;
2.디비생성 및 권한부여
CREATE DATABASE 데이터베이스명;
GRANT ALL privileges ON 데이터베이스명.* TO 계정아이디@localhost IDENTIFIED BY '비밀번호';
mysql> insert into db values('localhost','testdb','testuser','y','y','y','y','y','y','n','y','y','y','y','y','y','y','y','n','n','y','y');
2. USER 추가
mysql> insert into user values('localhost', 'testuser', password('userpass'),'Y','Y','Y','Y','Y',' Y ',' Y',' Y ',' Y',' Y ',' Y',' Y ',' Y',' Y',' Y',' Y',' Y ',' Y',' Y',' Y ',' Y',' Y',' Y',' Y ',' Y',' Y',' Y',' Y','','',' ','',' 0 ','0 ',' 0 ','0');
3. 변경사항 적용
mysql> flush privileges;
1.계정추가
INSERT INTO user (Host, User, Password) VALUES ('localhost', '계정아이디', password('비밀번호'));
FLUSH privileges;
2.디비생성 및 권한부여
CREATE DATABASE 데이터베이스명;
GRANT ALL privileges ON 데이터베이스명.* TO 계정아이디@localhost IDENTIFIED BY '비밀번호';
댓글목록
등록된 댓글이 없습니다.