GMgKe586q6suSQnyqZLlGCooeWM

Pages

Search

Monday, March 7, 2011

MySQL - Creating User

There are many ways to create user in MySQL database:
without password:
mysql> CREATE USER 'luna'@'localhost';

with password:
mysql> CREATE USER 'luna'@'localhost' IDENTIFIED BY 'maya'

If you want the user can access from anywhare of the client host, use
mysql> CREATE USER 'luna'@'%' IDENTIFIED BY 'maya';
Share/Bookmark

No comments:

Post a Comment