Java JDBC 驱动包下载,适用于MySQL 8及以上, mysql-connector-java-8.0.22.jar 官方版下载。
使用方法:
Class.forName("com.mysql.cj.jdbc.Driver");
注意:和以前版本驱动类名有所不同。
下载文件中包括 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
LICENSE file.
For more information on MySQL Connector/J, visit
https://dev.mysql.com/doc/connector-j/8.0/en/
For additional downloads and the source of MySQL Connector/J, visit
https://dev.mysql.com/downloads/
MySQL Connector/J is brought to you by the MySQL team at Oracle.
Notice:
- 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.
本文系作者在时代Java发表,未经许可,不得转载。
如有侵权,请联系nowjava@qq.com删除。