Menu
Please note that these are old versions. New releases will have recent bug fixes and features! To download the latest release of MySQL Connector/J, please visit.
- Details
- Written by Nam Ha Minh
- Last Updated on 11 June 2019 | Print Email
JDBC Driver Download:
Database | JDBC Driver Provider | JAR file name | Download |
MySQL | Oracle Corporation | mysql-connector-java-VERSION.jar | |
SQL Server | Microsoft Corporation | sqljdbc41.jar, sqljdbc42.jar | |
Oracle | Oracle Corporation | ojdbc6.jar, ojdbc7.jar, ojdbc8.jar | |
The PostgreSQL Global Development Group | postgresql-VERSION.jar | ||
Apache Derby | Apache Software Foundation | derby.jar, derbyclient.jar | |
SQLite | Xerial.org | sqlite-jdbc-VERSION.jar | |
Microsoft Access | UCanAccess.com | ucanaccess-VERSION.jar |
NOTES:
- Some drivers come as JAR files (Oracle, PostgreSQL), so you can add the JAR files directly to your application’s classpath.
- Some drivers come as zipped bundles (MySQL, SQL Server), so you have to extract the bundles and copy the appropriate JAR file (as specified in the above table) to your application’s classpath.
- There is a distribution of Apache Derby comes with JDK 7 called Java DB. So if you are using JDK 7, you can use the jar files directly from JDK_HOMEdblib directory without downloading Apache Derby. However, Java DB is removed from JDK since Java 8.
Maven Dependencies for JDBC Drivers
If your Java project uses Maven, simply add the following dependency in the pom.xmlfile.
Maven Dependency for MySQL JDBC Driver:
Maven Dependency for SQL Server JDBC Driver:
Maven Dependency for Oracle JDBC Driver:
Maven Dependency for PostgreSQL JDBC Driver:
Maven Dependency for SQLite JDBC Driver:
Maven Dependency for Apache Derby JDBC Driver:
Maven Dependency for Microsoft Access JDBC Driver:
NOTE: The versions of the dependencies listed above may not be up to date. You can search on Maven Central Repository for the latest versions.
Related JDBC Tutorials:
About the Author:
Nam Ha Minh is certified Java programmer (SCJP and SCWCD). He started programming with Java in the time of Java 1.4 and has been falling in love with Java since then. Make friend with him on Facebook.Add comment
MySQL provides connectivity for client applications developed in the Java programming language with MySQL Connector/J, a driver that implements the Java Database Connectivity (JDBC) API and also MySQL X DevAPI.
MySQL Connector/J 8.0 is a JDBC Type 4 driver that is compatible with the JDBC 4.2 specification. The Type 4 designation means that the driver is a pure Java implementation of the MySQL protocol and does not rely on the MySQL client libraries.
The driver also contains an implementation of MySQL X DevAPI, an Application Programming Interface for working with MySQL as a Document Store through CRUD-based, NoSQL operations.
For detailed information, please visit the official MySQL Connector/J documentation.
Licensing
Please refer to the README and LICENSE files, available in this repository, and the Legal Notices in the Connector/J documentation for further details.
Getting the Latest Release
MySQL Connector/J is free for usage under the terms of the specified licensing and it runs on any Operating System that is able to run a Java Virtual Machine.
Download and Install
MySQL Connector/J can be installed from pre-compiled packages that can be downloaded from the Connector/J download page. Installing Connector/J only requires obtaining the corresponding Jar file from the downloaded bundle or installer and including it in the application's CLASSPATH.
As a Maven Dependency
Alternatively, Connector/J can be obtained automatically via Maven's dependency management by adding the following configuration in the application's Project Object Model (POM) file:
Build From Sources
This driver can also be complied and installed from the sources available in this repository. Please refer to the Connector/J documentation for detailed instructions on how to do it.
GitHub Repository
This repository contains the MySQL Connector/J source code as per the latest release. No changes are made in this repository between releases.
Contributing
There are a few ways to contribute to the Connector/J code. Please refer to the contributing guidelines for additional information.
Additional Resources
- MySQL Connector/J Developer Guide.
- MySQL Connector/J X DevAPI Reference.
- MySQL Connector/J, JDBC and Java forum.
#connectors
channel in MySQL Community Slack. (Sign-up required if you do not have an Oracle account.)- @MySQL on Twitter.
- MySQL and Java Mailing Lists.
- InsideMySQL.com Connectors Blog.
- MySQL Bugs Database.
For more information about this and other MySQL products, please visit MySQL Contact & Questions.