반응형


[ GRANT 명령어를 이용 ]

[1]. 사용자 추가 후 모든권한 부여 방법

GRANT all privileges on test.* to test@localhost identified by 'testpassword';

GRANT all privileges on DB명.* to 사용자명@localhost identified by '비밀번호';



[2] 특정 테이블에 부분권한부여
GRANT SELECT,UPDATE,DELETE on kims.kimson_admin to artinpost@localhost



*** 만약에 이렇게 해도 적용이 되지 않는다면 ***

binding IP ADDRESS가 할당되어있어서 이런것이다.
/etc/mysql/my.cnf 파일을 열어서 다음 사항을 주석처리하자.

#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address           = 127.0.0.1  ==> #bind-address = 127.0.0.1 (요렇게 주석처리해주자)
# 

 

반응형

'DB > Maria & Mysql' 카테고리의 다른 글

[ WINDOWS OS 에서 MYSQL5.X ROOT 비밀번호 분실]  (0) 2011.01.04
MYSQL Tinyint(1) 의 의미  (2) 2010.07.27
[ MYSQL 유용한 함수 ]  (0) 2010.07.09
[Mysql Paging Query]  (3) 2010.07.02
Mysql Character Set 변경방법  (0) 2010.06.16

+ Recent posts