MySQL Connector/J

mysql : mysql-connector-java

JDBC Type 4 driver for MySQL

Dec 16, 2021
3.8k usages
593 stars

Add dependency in Maven / Gradle

<!-- https://jmaven.com/dependency/mysql/mysql-connector-java --> 
<dependency>
    <groupId>mysql</groupId>
    <artifactId>mysql-connector-java</artifactId>
    <version>8.0.28</version>
</dependency>

1. Add dependency to a Maven project

Maven: Add the mysql:mysql-connector-java library to the dependencies element of your pom.xml file:

<dependencies>
<dependency>
  <groupId>mysql</groupId>
  <artifactId>mysql-connector-java</artifactId>
  <version>8.0.28</version>
</dependency>
</dependencies>

To install mysql:mysql-connector-java library use the following command:

mvn install

2. Add dependency to a Gradle project

Gradle Groovy DSL: Add the mysql:mysql-connector-java library to the dependencies section of your build.gradle file:

dependencies {
implementation 'mysql:mysql-connector-java:8.0.28'
}

Gradle Kotlin DSL: Add the mysql:mysql-connector-java library to the dependencies section of your build.gradle.kts file:

dependencies {
implementation("mysql:mysql-connector-java:8.0.28")
}

3. Add dependency to a SBT Scala project

Scala: Add the mysql:mysql-connector-java library to your build.sbt file:

libraryDependencies += "mysql" % "mysql-connector-java" % "8.0.28"

4. Add dependency to a Grape project

Grape: Add an annotation mysql:mysql-connector-java library to your groovy script file:

@Grapes(
    @Grab('mysql:mysql-connector-java:8.0.28')
)

Compile Dependencies (0)

Group / Artifact Usage

Provided Dependencies (0)

Group / Artifact Usage

Test Dependencies (0)

Group / Artifact Usage

Recommended for You

WebJar for cross-fetch

11 usages

WebJar for aurelia-binding

8 usages

WebJar for rc-upload

3 usages

Produce and consume workflow events with Apache Kafka

More from Group

JDBC Type 4 driver for MySQL

3.8k usages
593 stars

MySQL Connector/MXJ is a Java Utility package for deploying and managing a MySQL database.

28 usages

MySQL Connector/MXJ is a Java Utility package for deploying and managing a MySQL database.

8 usages
© 2022 JMaven.com