Solve Mysql about Access denied for user'root'@'localhost' (using password: YES)

Preferred solution reference: https://blog.csdn.net/qq_36675754/article/details/81381341

First of all, my mysql version is 5.7. I did not solve the solutions proposed in the above link. Later, I accidentally saw that there were two mysql services in the task manager. Then I remembered that Zen Tao was installed on this machine in the afternoon. This Zen Tao comes with a mysql service. I closed Zen When I talked about it, the mysql service it brought with it was not turned off, which caused my program to run out of life. It really took a long time to find where the pit was.

The above is for reference only, that is to say, even if the mysql account password is correct, the permissions sometimes report the above error. It may also be caused by two or more mysql services on your local machine.

for reference only.

Guess you like

Origin blog.csdn.net/zhaojunjie_cc/article/details/100030880