This article mainly introduces the solution to the compatibility issue between MySQL 8.0 driver and Alibaba Druid version. The details are as follows: Notice: This exception indicates that the version of the druid data source does not match the driver version of MySQL 8.0. The solution is as follows: Make sure the MySql 8.0 driver is as follows <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.11</version> </dependency> Make sure the druid version is as follows <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.1.10</version> </dependency> Attached are the driver jar packages of various versions of Druid. The download methods are as follows: https://repo1.maven.org/maven2/com/alibaba/druid/ Refresh POM and update Maven, as shown below: Then start the project, run: If you see the following red reminder log, it means that the match has been successful: Next you can operate the database, but if you haven’t figured out the MySql 8.0 driver and database connection, then read this article. Notes on matching MySql 8.0 and corresponding driver packages This is the end of this article about how to solve the compatibility issue between MySQL 8.0 driver and Alibaba druid. For more information about the compatibility between MySQL 8.0 driver and Alibaba druid, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: The most complete and detailed process of installing deepin20 on vmware virtual machine
>>: Vue globally introduces scss (mixin)
Because the docker daemon needs to bind to the ho...
1. Enable remote access to the docker server Log ...
NERDTree is a file system browser for Vim. With t...
The specific code for implementing the retractabl...
I recently configured a server using Tencent Clou...
This article uses an example to illustrate the us...
Dig Introduction: Dig is a tool that queries DNS ...
Abstract: When people talk about MySQL performanc...
I believe that the Internet has become an increas...
This article uses examples to explain the princip...
Download source code git clone https://github.com...
Preface <br />I have been working in the fro...
1.vue packaging Here we use the vue native packag...
MySQL download and installation (version 8.0.20) ...
Insert data into mysql database. Previously commo...