Sep 062010
ID, pass, DB 부분을 필요한 정보로 바꿔주면 됩니다.
1. root로 mysql에 로그인하여
USE mysql;
INSERT INTO user (host, user, password) VALUES (‘localhost’,’ID’,password(‘pass’));
INSERT INTO db (Host, Db, User, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv) VALUES (‘%’, ‘DB’, ‘ID’, ‘Y’, ‘Y’, ‘Y’, ‘Y’,’Y’,’Y’);
GRANT ALL on DB.* TO ID;
FLUSH PRIVILEGES;
2. ID로 mysql에 로그인하여 DB를 생성
create database DB;
Comments
Powered by Facebook Comments
Sorry, the comment form is closed at this time.