insert into user(host, user, password) values('localhost', '아이디', password('비밀번호'));
insert into user(host, user, password) values('%', '아이디', password('비밀번호'));
grant all privileges on DB명.* to 아이디@localhost identified by '비밀번호';
grant all privileges on DB명.* to 아이디@'%' identified by '비밀번호';
[Mysql] 계정생성 예제
2011. 9. 26. 16:38