반응형

http://dev.mysql.com/doc/refman/4.1/en/connection-access.html

# mysql -u root -p
비밀번호 입력

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 52 to server version: 4.1.15

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed


mysql> GRANT ALL PRIVILEGES ON *.* TO 'test'@'localhost' IDENTIFIED BY 'testpw' WITH GRANT OPTION;
mysql> GRANT ALL PRIVILEGES ON *.* TO 'test'@'%' IDENTIFIED BY 'testpw' WITH GRANT OPTION;
mysql> flush privileges;

Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed

설명
text라는 유저를 만들고 localhost(루프백), 모든 접근을 허용한다,
비밀번호는 testpw, 모든데이터베이스와 테이블(*.*)에 모든 권한을 위임한다.

ps. 직접 user, host 테이블 값을 수정해도 된다.

반응형

'Tip & Tech > Both | Other' 카테고리의 다른 글

MySQL Dump & Restore  (0) 2010.10.20
오라클 오류번호-설명  (0) 2010.10.20
PostgreSQL 쿼리내용을 덤프(SQL File) 뜨는 법  (0) 2010.10.20
톰캣 서버 한글 URI 허용 설정.  (0) 2010.10.20
Oracle 9i 유저 설정변경  (0) 2010.10.20

+ Recent posts