MySql 8.0 corresponding driver package matchingAfter the MySql database is updated to version 8.0 or above, the corresponding application database link driver package must also be updated to version 8.0. Otherwise, a driver exception will be reported. A few points to note: 1. The latest driver package Maven download configuration is as follows:<dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.11</version> </dependency> 2. The JDBC configuration table is updated as follows:Previous Versions jdbc.driver=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://xxx.xx.xx.xxx:3306/db?characterEncoding=utf-8 jdbc.username=root jdbc.password=admin Current version
Pay attention to the red part, this is where the changes need to be made. After that, you can use the 8.0 version of MySql. MySql 8.0 version driver replacementThe driver of MySQL 8.0 needs to be changed to "com.mysql.cj.jdbc.Driver". The previous "com.mysql.jdbc.Driver" can no longer be used in MySQL 8.0. The official document link is: https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-api-changes.html; In addition, it is recommended to update mysql-connector-java to version 8.0 (https://dev.mysql.com/downloads/connector/j/). In summary, the following two points are modified: 1. Update the mysql-connector-java version:<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.11</version> </dependency> 2. Replace the driver:<jdbcConnection driverClass="com.mysql.cj.jdbc.Driver" connectionURL="jdbc:mysql://127.0.0.1:3306/test? useUnicode=true&characterEncoding=utf-8&useSSL=false" userId="root" password="root"/> The above is my personal experience. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Detailed explanation of inline-block layout implementation of CSS display attribute
>>: Introduction to the use of html area image hotspots with a list of related properties
Table of contents 1. JavaScript is single-threade...
Table of contents 1. Use SVG 2. Use fontAwesome 3...
Website link: http://strml.net/ By Samuel Reed Ti...
I wrote this blog to remember that I just install...
Preface: I used the official nginx proxy_cache as...
Introduction The meta tag is an auxiliary tag in ...
Original link: https://vien.tech/article/157 Pref...
Summarize This article ends here. I hope it can b...
Good database specifications help reduce the comp...
1. Overview Zabbix is a very powerful and most ...
Table of contents 1. Introduce according to the o...
This is an article about website usability. The a...
1. JS asynchronous execution principle We know th...
Table of contents 1. jsonp cross-domain 2. docume...
Collapsed headers are a great solution for displa...