tags:

views:

51

answers:

2

I reinstalled mysql on my machine, and before that, deleted all the files. However, after the reinstallation, i tried running mysql, and got this error

mysql -u root

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

I did not set any password, and in fact, running mysqladmin gives the same error as well

This is totally baffling - any idea why this might be happening?

A: 

try this:

mysql -u root -p

and hit enter when it asks for the password. Does that let you in?

Asaph
A: 

Did you run

mysqladmin -u root password "NEW-PASSWORD"

?

StarWind Software