navicat 连接mysql8.0出现Client does not support authentication protocol 解决方法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/IUNIQUE/article/details/83715115

Client does not support authentication protocol :客户端不支持认证协议

  1. 修改数据库加密方式:

alter user ‘root’@‘localhost’ identified by ‘password’ password expire never;

  1. 修改密码

alter user ‘root’@‘localhost’ identified with mysql_native_password by ‘新密码’;

  1. 刷新权限

flush privileges;

猜你喜欢

转载自blog.csdn.net/IUNIQUE/article/details/83715115