Could not obtain connection to query metadata : Public Key Retrieval is not allowed
您应该将客户端选项添加到 MySQL 连接器中,
allowPublicKeyRetrieval=true
以允许客户端自动从服务器请求公钥。
AllowPublicKeyRetrieval=True
允许恶意代理执行 MITM 攻击以获取纯文本密码,因此默认情况下它是false!必须显式开启。
也可以使用如下配置:
useSSL=false
所以,最终修改 db 配置如下即可:
jdbc:mysql://localhost:3306/db?allowPublicKeyRetrieval=true&useSSL=false
Could not obtain connection to query metadata : Public Key Retrieval is not allowed相关推荐
- java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed
问题:java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed 同时还有以下问题: HHH000 ...
- java mysql的一次报错,Public Key Retrieval is not allowed
文章目录 记录mysql的一次报错,先记录问题,稍后再排查问题所在 Exception 记录mysql的一次报错,先记录问题,稍后再排查问题所在 Exception 2022-09-28 10:58: ...
- java.sql.SQLNonTransientConnectionException Public Key Retrieval is not allowed
报错信息 2022-03-18 17:46:43.428 ERROR 20704 - [eate-1849941462] com.alibaba.druid.pool.DruidDataSource ...
- mysql 8.0 解决报错Public Key Retrieval is not allowed
项目中数据库mysql从5.7升到8.0后启动报错:java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not a ...
- 解决java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed
解决java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed 在连接数据库的url中,加上all ...
- Public Key Retrieval is not allowed(已解决)
Public Key Retrieval is not allowed(已解决) 在url的连接中加上allowPublicKeyRetrieval=true
- mybatis运行报错java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed
mybatis运行报错1 报错:java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed 解决方 ...
- Public Key Retrieval is not allowed解决
记录Public Key Retrieval is not allowed 文章目录 记录Public Key Retrieval is not allowed 一.导致"Public Ke ...
- MySQL连接报错Public Key Retrieval is not allowed错误
Mysql 8.x版本连接时报错 java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed 可能 ...
- MySQL8报错:Public Key Retrieval is not allowed
前言 连接MySQL数据库的时候,报错内容如下:"Public Key Retrieval is not allowed". 问题分析 mysql 8.0 默认使用 caching ...
最新文章
- VC运行时库(/MD、/MT等)
- c mysql封装 jdbc_利用Java针对MySql封装的jdbc框架类 JdbcUtils 完整实现
- AI新浪潮:截止2022年,全球74%的计算将来自端侧
- 不能在此路径中使用此配置节。如果在父级别上锁定了该节,便会出现这种情况
- PerfMon常用计数器
- gitlab4安装mysql出问题解决方法
- px4 uavcan linux,PX4开发指南-12.2.2.UAVCAN固件升级
- Sql语句实现某列每条记录与同列最大值的差值计算
- python 字节字符串_Python字符串转换为字节,字节转换为字符串
- Android开发之蓝牙(Bluetooth)---源码目录
- java.lang.Error: Unresolved compilation problem: 解决方案
- 怎么用电脑把优酷的kux格式转换成mp4格式
- 当年,我为何关停了亲手创建的“北京圣思园”
- 怎样才能走上架构师岗位
- 二极管的工作原理,什么是二极管?
- 为什么html中使用不了样式,css不起作用是什么原因?
- 移动机器人五种坐标系
- mysql弱口令字典_自制弱口令字典top100
- GAN论文逐段精读【论文精读】
- 正则表达式基本语法总结