Create new user in mysql and grant access

24 Oct

How to create new user and grant access in mysql:

GRANT ALL PRIVILEGES ON mydatabase.* To 'user'@'hostname' IDENTIFIED BY 'password';

Using .* after mydatabase - means that you want grant all the tables in that database to the user


Read more
http://superuser.com/questions/603026/mysql-how-to-fix-access-denied-for-user-rootlocalhost

http://stackoverflow.com/questions/1720244/create-new-user-in-mysql-and-give-it-full-access-to-one-database
Advertisements

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

%d bloggers like this: