Problem description
The following error occurred while connecting Hikari. Initialization failed
ERROR 27468 — [nio-8080-exec-1] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 – Exception during pool initialization.
Cause analysis:
It may be a driving problem
The MySQL version on this machine is higher than the driver version used. Unable to connect. You can check the version of MySQL and compare it with the driver used. Then look at dependency import.
Solution:
My solution is as follows: because my MySQL version is 8.0, then I use the connection package of 5. So the connection failed. So I first import the 8.0 connection package, and then modify the dependent version number. Note: if you use the 8.0 connection package, you need to change the class forname to: com.mysql.cj.jdbc.Driver. Then the problem was solved
Read More:
- Java database Druid error: com.alibaba.druid.pool.DruidDataSource error
- [Solved] springboot Project Run Error: HikariPool-1 – Exception during pool initialization.
- [Solved] AndroidStudio Error: Could not initialize class com.android.sdklib.repository.AndroidSdkHandler
- Configuration of springboot + Druid connection pool
- [Solved] Spring integrates canal to call feign error: pool-1-thread-1
- Client Error: Could not get a resource from the pool [How to Solve]
- [Solved] Cannot find class: com.mysql.jdbc.Driver
- [Solved] fragment error: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myapplication/com.example.myapplication.MainActivity}…
- [Solved] Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException
- Spring boot uses thread pool to realize asynchronous processing without return and asynchronous processing with return
- Java uses single thread pool to realize multi thread sequential execution (non alternating, non synchronous)
- [Solved] Tomcat Server Error: java.lang.NullPointerException Csonsole Error ClassNotFoundException: com.mysql.jdbc.Driver
- [Solved] com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure error
- [Solved] Failed toString() invocation on an object com.alibaba.fastjson.JSONException: write javaBean error
- [Solved] com.highgo.jdbc.util.PSQLException:bad value for long
- How to Solve idea com.baomidou Error
- How to Fix COM Surrogate has stopped working in Windows 7
- [Solved] GRPC-Server Error: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String; CLjava
- [Solved] com.alibaba.druid.filter.FilterManager : load filter error, filter not found : sl4j
- Android solution Java.util.concurrent.ExecutionException: com.Android.ide.common.process.ProcessException: exception