MVN

com.mysql : mysql-connector-j

Maven & Gradle

Jul 13, 2023
909 stars

MySQL Connector/J · JDBC Type 4 driver for MySQL.

<dependency>
    <groupId>com.mysql</groupId>
    <artifactId>mysql-connector-j</artifactId>
    <version>8.1.0</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of com.mysql : mysql-connector-j to add to Maven or Gradle - Latest Versions:

  • Latest Stable: 8.1.0

All Versions

Choose a version of com.mysql : mysql-connector-j to add to Maven or Gradle - All Versions:

Version Vulnerabilities Updated
8.1.x
mysql-connector-j-8.1.0
8.0.x
mysql-connector-j-8.0.33
mysql-connector-j-8.0.32
mysql-connector-j-8.0.31

How to add a dependency to Maven

Add the following com.mysql : mysql-connector-j maven dependency to the pom.xml file with your favorite IDE (IntelliJ / Eclipse / Netbeans):

<dependency>
    <groupId>com.mysql</groupId>
    <artifactId>mysql-connector-j</artifactId>
    <version>8.1.0</version>
</dependency>

How to add a dependency to Gradle

Gradle Groovy DSL: Add the following com.mysql : mysql-connector-j gradle dependency to your build.gradle file:

implementation 'com.mysql:mysql-connector-j:8.1.0'

Gradle Kotlin DSL: Add the following com.mysql : mysql-connector-j gradle kotlin dependency to your build.gradle.kts file:

implementation("com.mysql:mysql-connector-j:8.1.0")

How to add a dependency to SBT Scala

SBT Scala: Add the following com.mysql : mysql-connector-j sbt scala dependency to your build.sbt file:

libraryDependencies += "com.mysql" % "mysql-connector-j" % "8.1.0"