Mysql 8 Access denied for user root@localhost 报错

Not much to say, just open the whole.

The problem I encountered here is that when using the Navicat link, there is a problem

Here, let’s take a look at the mysql password method

Login myslq

select host, user, authentication_string, plugin from user;

 can be seen

 We need to modify this to mysql_native_password

alter user 'root'@'%' identified with mysql_native_password by '你的mysql登录密码';

After the modification is successful, we will check

 

This has been modified.

The link test was successful.

End the battle!

Guess you like

Origin blog.csdn.net/u012798683/article/details/105075643