JDBC 驱动包下载,适用MySQL 8及以上, mysql-connector-java-8.0.26.jar 官方版。
使用方法:
Class.forName("com.mysql.cj.jdbc.Driver");
注意:和以前版本驱动类名有所不同。
下载文件中包括 JDBC 驱动包、源码文件和相关文档:
Version 8.0.26
- Fix for Bug#32954396, EXECUTEQUERY HANGS WITH USECURSORFETCH=TRUE & SETFETCHSIZE.
- Fix for Bug#102372 (32459408), v8.0.23 unusable in OSGi.
- Fix for Bug#25554464, CONNECT FAILS WITH NPE WHEN THE SERVER STARTED WITH CUSTOM COLLATION.
- Fix for Bug#100606 (31818423), UNECESARY CALL TO "SET NAMES 'UTF8' COLLATE 'UTF8_GENERAL_CI'".
Thanks to Marc Fletcher for his contribution.
- Fix for Bug#102404 (32435618), CONTRIBUTION: ADD TRACK SESSION STATE CHANGE.
Thanks to William Lee for his contribution.
- Fix for Bug#95280 (29757140), DATABASEMETADATA.GETIMPORTEDKEYS RETURNS DOUBLE THE ROWS.
Thanks to Miron Balcerzak for his contribution.
- Fix for Bug#97269 (30438500), POSSIBLE BUG IN COM.MYSQL.CJ.XDEVAPI.STREAMINGDOCRESULTBUILDER.
- Fix for Bug#103303 (32766143), JAVA.LANG.CLASSCASTEXCEPTION WHEN INSERTING BLOB WITH SERVER PREPARED STATEMENT.
- WL#14205, Support query attributes.
- WL#14411, Support for authentication_kerberos_client authentication plugin.
- WL#14559, Deprecate TLS 1.0 and 1.1.
- WL#14391, Migrate QA tests to main repo.
本文系作者在时代Java发表,未经许可,不得转载。
如有侵权,请联系nowjava@qq.com删除。