- Start -> Programs -> MySQL -> MySQL Server 5.1 -> MySQL Command Line Client and provide password.
- At mysql> prompt, type show databases;. This will display the existing databases.
- To create a database "love", I'll run create database love;.
- Now if you try show databases, you'll see the "love" database.
mysql> CREATE USER 'lovely'@'localhost' IDENTIFIED BY 'deadly';
Query OK, 0 rows affected (0.00 sec)
mysql> grant all privileges on love.* to 'lovely'@'localhost' with grant option;
Query OK, 0 rows affected (0.00 sec)