Mac:Client does not support authentication protocol requested by server

Mac:Client does not support authentication protocol requested by server

Mac 不是windows

发生了一件事:MyEclipse访问Mysql时:Client does not support authentication protocol requested by server

使用了其他各种方面都不行。

我感觉:今天就到这了,比较晚了,网速有点慢。

冷静分析一下为什么:

  1. 搜索策略不对:搜索关键词应该是最少关键词:搜索和点击的时候,并没有太在意是mac的解决方案,套用了不适合自己的方案。
  2. 连续工作超过了一定时间,应该进行短休息了。
  3. 我在用百度云下载东西,所以网速卡顿,以前也遇到过,当时没想起来。

我的方案总结:

转载自:https://blog.****.net/DA_learner/article/details/80202190

获得知识:mysql8 之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password,

可能的windows端解决方案:

https://blog.****.net/qq_383698639/article/details/81298469

https://blog.****.net/seventopalsy/article/details/80195246

1、打开系统偏好设置:

Mac:Client does not support authentication protocol requested by server

2、找到 MySQL 点击打开:

Mac:Client does not support authentication protocol requested by server

3、点击红色标注,停止运行MySQL服务器:

Mac:Client does not support authentication protocol requested by server

4、在弹出的提示框输入密码允许该操作(你自己的Mac用户名和密码):

Mac:Client does not support authentication protocol requested by server

5、此时MySQL服务器已经停止运行,点击箭头指向按钮初始化MySQL(切记!在进行初始化操作前务必备份好你的MySQL里面你认为重要的东西 包括数据库数据表等等):

Mac:Client does not support authentication protocol requested by server

6、你会看到弹出的如下界面,输入MySQL用户密码,下面的第一个就是之前说到的强加密,不要选强加密,选择UseLegacy Password Encryption,点击 OK:

Mac:Client does not support authentication protocol requested by server

Mac:Client does not support authentication protocol requested by server

7、点击 Start MySQL Server 重新启动服务器,再根据需求创建自己的数据库数据表什么的,再用Navicat连接时就可以连接成功了。

Mac:Client does not support authentication protocol requested by server