ModsJava
Minecraft MySQL JDBC Mod (26.3, 1.20.1) – Connect Your Server Plugins
Java mod listed for Minecraft 1.20–26.x. Downloads from the MC Java Mods app on Android.
⬇ DownloadMinecraft MySQL JDBC Mod provides an up-to-date MySQL Connector/J driver wrapped as a universal library for servers. This mod helps other mods and plugins, such as Grim Anti-Cheat, connect to external MySQL or MariaDB databases. It is most useful on Fabric, NeoForge, and custom Bukkit forks that remove the default bundled database driver.
![]()
Features:
- Universal Database Library: Packages Oracle’s official MySQL Connector/J (version 9.1.0) into a single jar file that works across Fabric, Forge, NeoForge, and Bukkit-based servers.
- Standard Class Paths: Keeps all
com.mysql.cj.*classes in their original locations without relocation so standard database calls find the driver right away. - Public API Bypass: Includes a dedicated
MinecraftMysqlJdbcclass with a child-first classloader so plugins can use this newer driver instead of older server-bundled ones. - Auto-registers with
DriverManagerby keeping the standard Java SQL driver service files intact. - Works with MariaDB servers since MariaDB uses the MySQL wire protocol.
- Connects automatically with Grim Anti-Cheat’s MySQL backend when installed on the server.
Public API Methods:
connect(String url): Opens a standard SQL connection through this driver.connect(String url, Properties props): Opens a connection using custom user and password properties.driver(): Returns the activejava.sql.Driverinstance.driverVersion(): Returns the current connector-j version string, such as"9.1".eagerInit(): Warms up the classloader when a plugin starts.shutdown(): Releases open file handles when a plugin turns off.
Configuration:
useSSL=false: Turns off SSL for plain text connections when your MySQL server does not have a public CA-signed certificate.verifyServerCertificate=false: Lets you connect using a self-signed SSL certificate without failing the check.allowPublicKeyRetrieval=true: Allows unencrypted authentication with MySQL 8’s defaultcaching_sha2_passwordsystem.rewriteBatchedStatements=true: Combines batch insert queries into multi-row statements to speed up database traffic.
jdbc:mysql://host:3306/db?useSSL=false&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true
# in your plugin.yml
softdepend: [mysql-jdbc]
Properties props = new Properties();
props.setProperty("user", "grim");
props.setProperty("password", "...");
Connection c;
try {
c = MinecraftMysqlJdbc.connect("jdbc:mysql://host:3306/db?useSSL=false", props);
} catch (NoClassDefFoundError | ClassNotFoundException notInstalled) {
c = DriverManager.getConnection("jdbc:mysql://host:3306/db?useSSL=false", props);
}
Minecraft MySQL JDBC Mod Download Links
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 26.3, 1.20.1
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: In MC Java Mods, or directly above on this page.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
File checked by MCModsHub
- Downloads as 547503.mcaddon
- Download size: 2.5 MB
- Download link checked 14 Nov 2026 — working
- Mirrored on our own servers — the download does not depend on the original host
These come from our own check of the pack file, not from the source page.