Java JDBC 驱动包下载，适用于MySQL 8及以上， mysql-connector-java-8.0.22.jar 官方版下载。
下载文件中包括 JDBC 驱动包、源码文件和相关文档：
Copyright (c) 2000, 2020, Oracle and/or its affiliates.
This is a release of MySQL Connector/J, a JDBC Type 4 driver for MySQL that
also supports the new X DevAPI.
License information can be found in the LICENSE file.
This distribution may include materials developed by third parties.
For license and attribution notices for these materials, please refer to the
For more information on MySQL Connector/J, visit
For additional downloads and the source of MySQL Connector/J, visit
MySQL Connector/J is brought to you by the MySQL team at Oracle.
- In order to use the logging capabilities provided by the default
implementation com.mysql.cj.log.Slf4JLogger, it is required to add one or
more jars for Simple Logging Facade for Java (SLF4J) to your CLASSPATH.
- To use the X DevAPI features in Connector/J, you also need the external
library protobuf-java, which you can download manually from the official
Maven repository and add it to the CLASSPATH, or use Maven's automatic
dependency resolution features by adding a dependency to "GroupId: mysql"
and "ArtifactId: mysql-connector-java" to your project's pom.xml file.