当前位置:网站首页>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 :
边栏推荐
- [fault diagnosis] cv2 Imwrite cannot write the picture, but the program does not report an error
- Disturbed when programmers are programming? Daily anecdotes
- Interaction between C language and Lua (practice 3)
- Ora-15063: ASM discovered an insufficient number of disks for diskgroup
- Search (intensive training)
- 网页设计与制作期末大作业报告——动画家宫崎骏
- Recruiters - issue 23
- 【使用指南】使用公共的conda创建环境
- "O & M youxiaodeng" active directory batch modification user
- Large website technology architecture | application server security defense
猜你喜欢

Golang concise architecture practice

Qt项目的新首席维护人员

Postman uses (reads) JSON files for batch testing

Use echart to draw 3D pie chart, dashboard and battery diagram

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

软件架构与模式:结构、组件、关系

Graph calculation on nlive:nepal's graph calculation practice

Introduction to AWS elastic Beanstalk

Get the specified row content in Oracle rownum and row_ number()

Knowledge points used in MVC project development (mvccontrib separates asp.net MVC project)
随机推荐
招贤纳士-第23期
Importbeandefinitionregistrar registers beans with the container
Slurm tutorial
ORA-15063: ASM discovered an insufficient number of disks for diskgroup 恢複---惜分飛
How much does it cost to buy a fixed-term life insurance with an insured amount of 500000 at the age of 42? Is there any product recommendation
[fault diagnosis] the picture cut code cannot be cut out, slide read_ Region does not run, but the program does not report an error
Pourquoi golang ne recommande - t - il pas ceci / self / me / this / _ Ça.
zipimport.ZipImportError:
获取DPI函数返回值永远是96 | 获取DPI函数返回值不正确 | GetDpiForMonitor/GetDeviceCaps返回值不正确的原因
【故障诊断】切图代码切不出来,slide.read_region不运行,但程序不报错
New chief maintenance personnel for QT project
Spark - executor initialization &
What is the difference between TOC and Tob
[details] domestic website filing process and steps
拦截器的具体概念
Introduction to AWS elastic Beanstalk
Golang為什麼不推薦使用this/self/me/that/_this
Final examination questions of Database Principles
轻量级CNN设计技巧
JUC - 线程中断与线程等待、唤醒(LockSupport)