MySQL - ERROR 1045 - Access denied

Posted by Abs on Stack Overflow See other posts from Stack Overflow or by Abs
Published on 2009-01-28T20:12:52Z Indexed on 2010/05/12 8:14 UTC
Read the original article Hit count: 315

In some way I have managed to get this error when I try to access into MySQL via the command line:

[root@localhost ~]# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

I have tried resetting the password without any luck using this HowTo.

I have uninstalled mysql completley and reinstalled but I still get asked for a password. I have no idea why this is the case!

Can someone please help me get a default install of MySQL.

Environment

Fedora Core 10, Full Root Access, Apache and PHP installed

Thank you for any help!!

EDIT

To all those that would like to save themselves a few hours of "blood coughing" - when you uninstall MySQl completely delete everything that is left behind. If you don't do this, it will never be a FRESH install.

© Stack Overflow or respective owner

Related posts about mysql

Related posts about linux