데이터베이스 구조는 버전에 따라 일정치 않고 현재 5.1.73
좀더 알아봐야 하겠으나
디비생성 – 디비등록 – 유저등록 – 갱신 (그란트권한에 유의, 크리에이트부분확실히 정리할 필요)
CREATE DATABASE [database];
INSERT INTO db VALUES(‘[host]’,'[database]’,'[user]’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’N’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’N’,’N’,’Y’,’Y’);
INSERT INTO user (host,user,password) VALUES(‘[host]’,'[user]’,password(‘[user]’));
flush privileges;
Field | Type | Null | Key | Default | Extra |
Select_priv | enum(‘N’,’Y’) | NO | N | ||
Insert_priv | enum(‘N’,’Y’) | NO | N | ||
Update_priv | enum(‘N’,’Y’) | NO | N | ||
Delete_priv | enum(‘N’,’Y’) | NO | N | ||
Create_priv | enum(‘N’,’Y’) | NO | N | ||
Drop_priv | enum(‘N’,’Y’) | NO | N | ||
Grant_priv | enum(‘N’,’Y’) | NO | N | ||
References_priv | enum(‘N’,’Y’) | NO | N | ||
Index_priv | enum(‘N’,’Y’) | NO | N | ||
Alter_priv | enum(‘N’,’Y’) | NO | N | ||
Create_tmp_table_priv | enum(‘N’,’Y’) | NO | N | ||
Lock_tables_priv | enum(‘N’,’Y’) | NO | N | ||
Create_view_priv | enum(‘N’,’Y’) | NO | N | ||
Alter_routine_priv | enum(‘N’,’Y’) | NO | N | ||
Execute_priv | enum(‘N’,’Y’) | NO | N | ||
Event_priv | enum(‘N’,’Y’) | NO | N | ||
Trigger_priv | enum(‘N’,’Y’) | NO | N |