MySQL Database 생성
create database database_name default character set utf8;
계정추가
-
local에서만 연결할 경우
grant all privileges on dbname.* to user_name@localhost identified by 'password' with grant option; -
원격서버에서도 접근가능
grant all privileges on dbname.* to user_name@'%' identified by 'password' with grant option;
'Database > MySQL' 카테고리의 다른 글
MySQL IFNULL 사용 (0) | 2012.05.15 |
---|---|
MySQL IF문 사용 (0) | 2012.05.14 |