mysql testdb

mysql> create database testdb;
Query OK, 1 row affected (0.03 sec)

mysql> create user ‘testuser’@’localhost’ identified by ‘password’;
Query OK, 0 rows affected (0.06 sec)

mysql> use testdb;
Database changed
mysql> grant all on testdb.* to ‘testdb’@’localhost’;
Query OK, 0 rows affected (0.00 sec)

mysql>flush privileges

mysql>select user, host from mysql.user;

Advertisements
This entry was posted in mysql. Bookmark the permalink.

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