W3Schools Learner's Blog

w3Schools programming knowledge summary website

div

5/03/2018

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

My "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)" solution.

When I try to connect the MySQL Server by command:
  1. mysql -u root -p
I get error :
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
Solution :
When you see the error of "Access denied", make sure your MySQL password is correct.
For MySQL > 5.6:
The default root password is blank (i.e. empty string) not root

No comments:

Post a Comment

Note: only a member of this blog may post a comment.