Mysql – Error 1045 MySQL during setup

mysql

Could anyone explain to me error 1045 during MySQL setup. I'm getting this error after reinstalling. I 'm trying to install on windows 7. On the last stage of installation (i.e apply security settings) I'm getting the following message:

The security settings could not be applied. Error Number 1045.
Access denied for user 'root' @ 'loaclhost'(usinf password: NO).

How can I get around this?

Best Solution

What worked for me on a 64 bit Windows 7 was

  1. Uninstall
  2. Remove C:\Program Files\MySQL
  3. Remove C:\ProgramData\MySQL (This folder may be hidden)
  4. Reinstall