Solve the compatibility issue between MySQL 8.0 driver and Alibaba Druid version

Solve the compatibility issue between MySQL 8.0 driver and Alibaba Druid version

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:
  • Notes on matching MySql 8.0 and corresponding driver packages
  • Summary of Mysql-connector-java driver version issues
  • Detailed explanation of Spring Boot Mysql version-driven connection pool solution selection
  • Brief analysis of the various versions of mysql.data.dll driver

<<:  The most complete and detailed process of installing deepin20 on vmware virtual machine

>>:  Vue globally introduces scss (mixin)

Recommend

Mysql join table and id auto-increment example analysis

How to write join If you use left join, is the ta...

Apache Spark 2.0 jobs take a long time to finish when they are finished

Phenomenon When using Apache Spark 2.x, you may e...

Rhit efficient visualization Nginx log viewing tool

Table of contents Introduction Install Display Fi...

Detailed explanation of JavaScript's garbage collection mechanism

Table of contents Why do we need garbage collecti...

Detailed tutorial on installing MySQL 8 in CentOS 7

Prepare Environmental information for this articl...

Nginx Location Configuration Tutorial from Scratch

Basics The matching order of location is "ma...

Basic usage of exists, in and any in MySQL

【1】exists Use a loop to query the external table ...

Building a Redis cluster on Docker

Table of contents 1. Pull the image 2. Create a R...

Zabbix monitors Linux hosts based on snmp

Preface: The Linux host is relatively easy to han...

How to change the system language of centos7 to simplified Chinese

illustrate When you install the system yourself, ...

Teach you MySQL query optimization analysis tutorial step by step

Preface MySQL is a relational database with stron...

Share CSS writing standards and order [recommended for everyone to use]

CSS writing order 1. Position attributes (positio...

Detailed explanation of three ways to set borders in HTML

Three ways to set borders in HTML border-width: 1...

How to implement page jump in Vue project

Table of contents 1. Create a vue-cli default pro...