eciplise中Public Key Retrieval is not allowed
时间: 2023-10-21 12:29:54 浏览: 44
在eclipse中,“Public Key Retrieval is not allowed”是指不允许检索公钥的错误。这个错误通常出现在连接数据库时,表示无法使用公钥来进行身份验证。具体来说,当你尝试连接到数据库时,数据库会要求提供公钥以验证身份。但是,如果在连接属性中将“allowPublicKeyRetrieval”设置为false,则不允许检索公钥,导致出现该错误。解决方法是通过编辑连接属性,将“allowPublicKeyRetrieval”设置为true,允许检索公钥进行身份验证。这样就可以成功连接到数据库了。<span class="em">1</span><span class="em">2</span><span class="em">3</span><span class="em">4</span>
相关问题
Public Key Retrieval is not allowed Public Key Retrieval is not allowed
回答: "Public Key Retrieval is not allowed"错误通常是由于禁用了SSL/TLS协议传输导致的。在禁用SSL/TLS协议传输后,客户端需要使用服务器的公钥进行传输,但默认情况下客户端不会主动去找服务器拿公钥,从而导致错误的出现。\[2\]解决这个问题的方法有以下几种:一是启用TLS作为首选机制,确保可用;二是设置AllowPublicKeyRetrieval=True,允许客户端自动从服务器请求公钥;三是使用ServerRSAPublicKeyFile连接字符串设置服务器的RSA公钥。需要注意的是,启用AllowPublicKeyRetrieval=True可能会增加恶意代理执行MITM攻击以获取明文密码的风险,因此默认情况下是禁用的,需要显式启用它。\[3\]
#### 引用[.reference_title]
- *1* *2* [Public Key Retrieval is not allowed解决](https://blog.csdn.net/weixin_55599565/article/details/125140094)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [DBeaver连接时报错:Public Key Retrieval is not allowed Public Key Retrieval is not allowed](https://blog.csdn.net/qq_42971035/article/details/120247453)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
navicat中Public Key Retrieval is not allowed
在Navicat中遇到"Public Key Retrieval is not allowed"异常通常是由于MySQL连接配置的问题引起的。这个异常表示MySQL服务器不允许使用公钥检索数据。
解决这个问题的方法是在Navicat中修改连接配置,具体步骤如下:
1. 打开Navicat并连接到MySQL服务器。
2. 在连接窗口中,找到"高级"选项卡。
3. 在"高级"选项卡中,找到"SSL"部分。
4. 将"Public Key Retrieval"选项设置为"AllowPublicKeyRetrieval=True"。
5. 点击"确定"保存修改的配置。
6. 重新连接到MySQL服务器,应该不再出现"Public Key Retrieval is not allowed"异常。
请注意,这个解决方法适用于Navicat的连接配置,如果你使用其他工具连接MySQL服务器,可能需要在相应的工具中进行类似的配置修改。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)