当前位置:首页 > 数据库 > 正文

Navicat连接Mysql报错:Client does not support authentication prot

2024-03-31 数据库

Navicat连接MySQL Server8.0版本时出现Client does not support authentication protocol requested  by server;解决如下:

  首先我们连接数据库    

mysql -u 用户名 -p

  接下来输入你的密码,登录成功后显示下面的信息

  

   我们接着使用下面sql指令打开mysql这个数据库

use mysql;

  修改用户的认证规则

alter user ‘你的用户名‘@‘localhost‘ identified with mysql_native_password by ‘你的密码‘;

  最后刷新权限

flush privileges;

  

  

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/SQL/12150.html