【解决】client does not support authentication转载的两种解法

碰到这个问题一直难以解决,直到我看到了以下两位博主的博客。非常的有用。

第一位采用CMD

cmd窗口登陆mysql:

C:\Users\Administrator>  sqlplus  /nolog


mysql>  conn / as sysdba;

mysql> alter user 'root'@'localhost' identified with mysql_native_password by '123456';
Query OK, 0 rows affected (0.10 sec)

mysql> flush privileges;

Query OK, 0 rows affected (0.01 sec)
---------------------
作者:wjunsing
来源:CSDN
原文:https://blog.csdn.net/WJUNSING/article/details/80483934
版权声明:本文为博主原创文章,转载请附上博文链接!

 

 

 

 

 

 第二位采用

在开始程序里,找MySQL文件夹,展开就可以发现

上篇刚写了安装Mysql,想用Navicat去连接,然后就报错了,此处记录报错解决。

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

命令如下:

1、use mysql;

2、alter user 'root'@'localhost' identified with mysql_native_password by '********';

3、flush privileges;

 转载zzz紫川:https://www.cnblogs.com/zichuan/p/9203129.html

  • 76
    点赞
  • 185
    收藏
    觉得还不错? 一键收藏
  • 25
    评论
评论 25
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值