当前位置:网站首页>Solutions to MySQL 8.0 public key retrieval is not allowed errors
Solutions to MySQL 8.0 public key retrieval is not allowed errors
2022-06-22 04:50:00 【Sigh of love】
The recent discovery tomcat A launch configuration mysql8.0 The database error of is as follows :
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Public Key Retrieval is not allowed)
at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1549)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
at org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider.getConnection(InjectedDataSourceConnectionProvider.java:71)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)
... 60 more
Caused by: java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:110)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:828)
at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:448)
at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:241)
at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:198)
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)
at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)
... 64 more
The simplest solution is to add... After the connection allowPublicKeyRetrieval=true
allowPublicKeyRetrieval=trueReference resources :
边栏推荐
猜你喜欢

基于深度学习的目标检测算法面试必备(RCNN~YOLOv5)

Ora-15063: ASM discovered an insufficient number of disks for diskgroup

使用Echart绘制3D饼环图、仪表盘、电池图

Disturbed when programmers are programming? Daily anecdotes
![[you don't understand the routing strategy? Try it!]](/img/f6/dfc233af83d04870b46b7279690660.png)
[you don't understand the routing strategy? Try it!]

【科研笔记】Focal Loss

Arrangement of soft test subjects in the second half of 2022

Great! Huaibei and Huaibei enterprises are approved to use special marks for geographical indication products

About SSM integration, this is enough ~ (nanny level hands-on tutorial)

Solve the problem that swagger2 displays UI interface but has no content
随机推荐
Systematic arrangement | how many children's shoes have forgotten to be done carefully before the model development (practical operation)
How SQL server generates change scripts
Accurate identification of bank card information - smart and fast card binding
cadence allegro 17. X conversion tool for downgrading to 16.6
[user guide] create an environment using public CONDA
Solve the problem that swagger2 displays UI interface but has no content
【使用指南】清华源的使用
[fault diagnosis] using multithreading, the program does not report an error but does not run
[从零开始学习FPGA编程-39]:进阶篇 - 语法-硬件模块的单元测试:仿真激励、testbench
Knowledge points used in MVC project development (mvccontrib separates asp.net MVC project)
Learning signal integrity from scratch -- 7-si analysis and simulation
Specific concept of interceptor
Use putty to configure port mapping to realize the access of the external network to the server
@Conditional use
mongo模糊查詢,帶有特殊字符需要轉義,再去查詢
Exness: ECB president Christine Lagarde reiterated her plan to raise interest rates at the July meeting
torch DDP Training
103. simple chat room 6: using socket communication
Tencent side
下拉刷新,上推加载(简单好用,终于会了)