IDEA connects to mysql database permission error. Client does not support authentication protocol requested by server; consider upg

 Client does not support authentication protocol requested by server; consider upgrading MySQL client

Translation: The client does not support the authentication protocol requested by the server; consider upgrading the MySQL client

 Solution:

Log in to mysql and configure the mysql_native_password authentication plugin

//root是登录的用户名称,后面的by '新密码';中的密码要换成自己的
alter user 'root'@'localhost' identified with mysql_native_password by '12345678';
//刷新权限
flush privileges;

win+R and enter cmd to open the command line window

My mysql here has been configured in the environment, so it can be opened in any path. If you cannot enter the password input option normally, you need to find the path under mysql and enter the command, or you can configure it in the environment. 

 

Reason: This is because the default password verification of mysql8.0 is no longer password. Therefore, when creating a user, create user 'username'@'%' identified by 'password'; the client cannot connect to the service. So you need to change the password of the mysql_native_password authentication plug-in.

Problem solved, connection successful! ! !

 

Guess you like

Origin blog.csdn.net/weixin_57997644/article/details/132073100