navicate连接MySQL出现报错client does not support authentication protocol requested by server consider ...
程序员文章站
2022-06-12 22:27:05
...
新装了mysql80可以说一波三折,本来想自己下载个zip压缩版本自己配置,结果环境老是出错,后来还是下载了msi版本的,安装的时候又忘了更改MySQL的安装地址和选择安装的产品,又重新装,最后遇到一个纠结很久的错误,就是我在MySQL命令行何以连接上MySQL,但是navicate测试连接连接不上,并且报错:client does not support authentication protocol requested by server consider ...,后来经过参考网上各种分析,最终找出解决办法,登入MySQL的命令行界面,然后输入:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
其中password需要改成你自己的密码,大概原因是MySQL8.0的加密方式改变了,但是比较老版本的navicate没有来得及支持,因此需要将mysql设置为支持传统的那种密码加密,如果用比较低版本的MySQL,比如MySQL57应该就不会出现这种问题。
最后再输入下面一句进行刷新
FLUSH PRIVILEGES;
问题解决
上一篇: JAVA 设计模式之原型模式
推荐阅读
-
mysql4.1以上版本连接时出现Client does not support authentication protocol问题解决办法
-
mysql Client does not support authentication protocol requested by server; consider upgrading MySQL
-
解决Navicat连接MySQL时“Client does not support authentication protocol requested by server; consider upgrading MySQL client”的问题
-
mysql4.1以上版本连接时出现Client does not support authentication protocol问题解决办法_php技巧
-
连接8.0.15mysql 报错 client does not support authentication protocol requested by server ,consider upgra
-
nodejs连接mysql报错:Client does not support authentication protocol requested by server; consider upgrad
-
MySQL8.0报错Client does not support authentication protocol requested by server; consider upgrading My
-
MySql 链接报错“Client does not support authentication protocol requested by server; consider upgradin”
-
node连接数据库报错Client does not support authentication protocol requested by server; consider upgrading M
-
关于nodejs报错Client does not support authentication protocol requested by server; consider upgrading My