Database

mysql_4.1.x 부터 계정 추가시 달라진점

leopit 2017. 1. 7. 00:43

http://www.mysql.com/doc/en/GRANT.html

버전 4.1.x부터는 계정추가시 grant로 유저에게 DB사용권한을 줘야한다.

:: 사용예
mysql> grant all privileges on db_name.* user_name@host identified by 'password' with grant option;

mysql> grant all privileges on leopit.* to leopit@localhost