Possible Duplicate:
How should I diagnose ERROR 1045 during MySQL installation?

The server runs on Ubuntu 9.10 64b.

I have installed mysql-server from source. The installation has completed successfully but when I run the mysql command in a terminal, I get following error:

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

What does that mean ? How do i rectify this error?


You need to set a password before you can use it:

mysqladmin -u root password mysecret

After that, you can login with

mysql -u root -p

Not the answer you're looking for? Browse other questions tagged or ask your own question.