Create a user in mysql


To create a new user  in mysql using grant

GRANT ALL ON my_db.* TO ‘my_user’@localhost IDENTIFIED BY ‘my_pass’;

To grand all permission to the user

GRANT ALL ON my_db.* TO ‘username’@’localhost’;

For more detailed information on how to use the GRANT statement, please visit the ‘MySQL grant‘ article in your hosting encyclopedia or the MySQL documentation (http://dev.mysql.com/doc/refman/5.1/en/grant.html).

Advertisements
By karuppasamy11486 Posted in Mysql Tagged

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s