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

2023-05-16

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

第一位采用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

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

【解决】client does not support authentication转载的两种解法 的相关文章

随机推荐