首页 > 其他分享 >Mac:Client does not support authentication protocol requested by server

Mac:Client does not support authentication protocol requested by server

时间:2023-03-27 16:07:05浏览次数:33  
标签:requested 加密 support 网速 数据表 点击 服务器 MySQL protocol


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. 我在用百度云下载东西,所以网速卡顿,以前也遇到过,当时没想起来。



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


1、打开系统偏好设置:

Mac:Client does not support authentication protocol requested by server_数据库_02

2、找到 MySQL 点击打开:

Mac:Client does not support authentication protocol requested by server_python_03

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

Mac:Client does not support authentication protocol requested by server_数据库_04

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

Mac:Client does not support authentication protocol requested by server_mysql_05

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

Mac:Client does not support authentication protocol requested by server_数据库_06

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

Mac:Client does not support authentication protocol requested by server_python_07

Mac:Client does not support authentication protocol requested by server_数据库_08

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

Mac:Client does not support authentication protocol requested by server_mysql_09


标签:requested,加密,support,网速,数据表,点击,服务器,MySQL,protocol
From: https://blog.51cto.com/owenzhang24/6152326

相关文章