about MySQL database

The case is that a server admin created a database "test" and with my username "xxx" and password "123456".

But when i type in 'mysql -u xxx -p'
and enter the correct password.

I only got an error message :
ERROR 1045: Access denied for user: 'xxx@localhost' (Using password: YES)

But if i use php to access it, i work fine with the database "test".
What happen and what should I do ?

Thx a lot !about MySQL database

 

 

 

 

Top