MySQL : Creating a new User

Creates a new User called user1 at localhost and with the password pass1

CREATE USER 'user1'@'localhost' IDENTIFIED BY 'pass1';

Grants permission for all kind of operations on all databases.

GRANT ALL ON *.* TO 'user1'@'localhost';

Original Source @databasef1

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: