0

I have spent hours just trying to set up MySQL and still no success(on windows). I am starting to doubt my very name.

When I try to configure it says:

"The security settings could not be applied. Error Number 1045. Access denied for user 'root'@'localhost' (usin passwrd: NO)

And before it kept rejecting my password.

Adam
  • 1

2 Answers2

1

http://www.wampserver.com/en/download.php

Use it, love it, stop wasting time and get programming!

OR YOU CAN TRY THIS....

If you actually have set a root password and you've just lost/forgotten it:

Stop MySQL Restart it manually with the skip-grant-tables option: mysqld_safe --skip-grant-tables

Run the MySQL client: mysql -u root

Reset the root password manually with this MySQL command: UPDATE mysql.user SET

Password=PASSWORD('password') WHERE User='root';

Flush the privileges with this MySQL command: FLUSH PRIVILEGES;

From http://www.tech-faq.com/reset-mysql-password.shtml

MySQL - ERROR 1045 - Access denied

Community
  • 1
  • 1
Dennis
  • 3,962
  • 7
  • 26
  • 44
0

I had this (frustrating) issue as well. What I did was:

  • Uninstall MySQL
  • Delete the folder C:\ProgramData\MySQL\
  • Install MySQL again

Hope it works for you as well.

Galz
  • 6,713
  • 4
  • 33
  • 39