Here is the test case for the same.
## Login with anonymous account(no user/no password)
C:\>mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 31
Server version: 5.1.34-enterprise-gpl-adva
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database expertexchange;
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'expertexchange'
mysql> \q
Bye
## Now login with valid username/password
C:\>mysql -uroot -p
Enter password: ******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 33
Server version: 5.1.34-enterprise-gpl-adva
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database expertexchange;
Query OK, 1 row affected (0.00 sec)
mysql>
Main Topics
Browse All Topics





by: ushastryPosted on 2009-11-02 at 03:18:37ID: 25718464
Please login with valid user instead of anynymous user while creating the database. Please let me know if you ahve forgotten root or any user access details.