Java JDBC 驱动包下载,适用于MySQL 8及以上, mysql-connector-java-8.0.23.jar 官方版下载。
使用方法:
Class.forName("com.mysql.cj.jdbc.Driver");
注意:和以前版本驱动类名有所不同。
下载文件中包括 JDBC 驱动包、源码文件和相关文档:
Version 8.0.23
- Fix for Bug#21789378, FORCED TO SET SERVER TIMEZONE IN CONNECT STRING.
- Fix for Bug#95644 (30573281), JDBC GETDATE/GETTIME/GETTIMESTAMP INTERFACE BEHAVIOR CHANGE AFTER UPGRADE 8.0.
- Fix for Bug#94457 (29402209), CONNECTOR/J RESULTSET.GETOBJECT( ..., OFFSETDATETIME.CLASS ) THROWS.
- Fix for Bug#76775 (20959249), FRACTIONAL SECONDS IN TIME VALUES ARE NOT AVAILABLE VIA JDBC.
- Fix for Bug#99013 (31074051), AN EXTRA HOUR GETS ADDED TO THE TIMESTAMP WHEN SUBTRACTING INTERVAL 'N' DAYS.
- Fix for Bug#98695 (30962953), EXECUTION OF "LOAD DATA LOCAL INFILE" COMMAND THROUGH JDBC FOR DATETIME COLUMN.
- Fix for Bug#101413 (32099505), JAVA.TIME.LOCALDATETIME CANNOT BE CAST TO JAVA.SQL.TIMESTAMP.
- Fix for Bug#101242 (32046007), CANNOT USE BYTEARRAYINPUTSTREAM AS ARGUMENTS IN PREPARED STATEMENTS ANYMORE.
Thanks to Martynas Puronas for his contribution.
- WL#14274, Support for authentication_ldap_sasl_client(SCRAM-SHA-256) authentication plugin.
- WL#14206, Support for authentication_ldap_sasl_client(GSSAPI) authentication plugin.
- WL#14207, Replace language in APIs and source code/docs.
本文系作者在时代Java发表,未经许可,不得转载。
如有侵权,请联系nowjava@qq.com删除。