Monday, November 21, 2011

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;

No comments:

Post a Comment