programming

MySQL 권한설정

오늘은어때 2009. 3. 27. 10:22

//로컬사용자설정

grant all privileges on 디비명.* to 사용자명@localhost identified by '비번' with grant option;
FLUSH PRIVILEGES;

//외부사용자설정
grant all privileges on 디비명.* to 사용자명@xxx.xxx.xxx.xxx identified by '비번' with grant option;
FLUSH PRIVILEGES;


[#] 디비연결은 되는데, sql실행이 안되고 있다 -_-;
권한문제인것 같아서 수정해보고 있는데, 아직 해결하지 못한 상태.. 아 놔..

[!!] 문제해결

mysql_query("set names euckr");
mysql_query("set sql_mode='ANSI'");

디비한글 셋팅이 문제였음 -_-a