Minecraft MySQL JDBC
by Axionize
Minecraft MySQL JDBC is a library that bundles Oracle's MySQL Connector/J driver for mods and server plugins that need a MySQL database connection.
What it does
The library ships an up-to-date MySQL Connector/J binary wrapped for Fabric, Forge, NeoForge, Quilt and Bukkit-family servers, including Paper, Spigot, Bukkit, Purpur and Folia. Plugins such as Grim Anti-Cheat can use its MySQL backend through the library's API once the holder is installed. Because the jar is repackaged from Oracle's official Connector/J, it keeps the driver's own class names and behavior.
The defaults of the newer driver need overriding in most real deployments. With MySQL 8 and caching_sha2_password, the connection string needs allowPublicKeyRetrieval=true for an unencrypted channel, and useSSL=true fails against a server without a public CA-signed certificate. Setting useSSL=false or adding verifyServerCertificate=false covers a self-signed setup. Setting rewriteBatchedStatements=true folds batch INSERTs into multi-row statements, while without it each row still costs a round trip. The library is open source and released under the GNU General Public License v2.0 only, with an exception for free software.
Key features
Bundled Connector/J
The library carries an up-to-date MySQL Connector/J binary, so mods need no separate driver package.
Child-first class loading
The driver loads in a child-first URLClassLoader, so mods get a standard java.sql.Connection and their casts still work.
Driver class name
The class com.mysql.cj.jdbc.Driver resolves under both the old and new Connector/J artifact coordinates.
Grim Anti-Cheat backend
Grim Anti-Cheat's MySQL backend uses this library's API automatically once the holder is installed.
Compatibility
Latest build for each game version and loader.
26.x3 of 3 versions with builds
1.21.x12 of 12 versions with builds
1.20.x7 of 7 versions with builds
1.19.x5 of 5 versions with builds
1.18.x3 of 3 versions with builds
1.17.x2 of 2 versions with builds
1.16.x6 of 6 versions with builds
1.15.x3 of 3 versions with builds
1.14.x5 of 5 versions with builds
1.13.x2 of 2 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
2 older game versions (1.12.2 – 1.13) not shown. All files on Modrinth
How it compares
MariaDB JDBC is open source under the GNU Lesser General Public License v2.1 only and covers Fabric, Forge and Quilt for 1.12 – 1.20.4. MySQL JDBC Driver is open source under the GNU General Public License v2.0 only, for Fabric and NeoForge across 1.18 – 1.21.4. SQLite JDBC is open source under the Apache License 2.0 and also targets Fabric, Forge and Quilt for 1.12 – 1.20.4.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Minecraft MySQL JDBC | Fabric, Forge, NeoForge and Quilt | 1.12.2 – 26.1.2 | Not published | 2026-06-06 |
| MariaDB JDBC | Fabric, Forge and Quilt | 1.12 – 1.20.4 | Client or server, optional | 2023-05-06 |
| MySQL JDBC Driver | Fabric and NeoForge | 1.18 – 1.21.4 | Client or server, optional | 2025-01-03 |
| SQLite JDBC | Fabric, Forge and Quilt | 1.12 – 1.20.4 | Client or server, optional | 2023-05-06 |
Questions
Does the library need to be installed on both sides?
Which loaders and versions does the library support?
Why does connecting to MySQL 8 fail without changing the URL?
In the catalog
Minecraft MySQL JDBC is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 15,189 mods support Minecraft 26.1.2.
More from Axionize
Similar mods
What the author says
Oracle's official MySQL Connector/J repackaged as a Bukkit/Spigot/Paper plugin and a Fabric/Forge/NeoForge mod. com.mysql:mysql-connector-j:9.1.0 plus minimal loader stubs for Spigot, Forge 1.12, Forge 1.13–1.16, Forge 1.17–1.20, NeoForge 1.21+, and Fabric. No relocation — com.mysql.cj.* classes stay at canonical…
Official listing
- Modrinth page
- modrinth.com/mod/minecraft-mysql-jdbc
- Owner
- Axionize
- Published
- 2026-04-25
- Updated on Modrinth
- 2026-06-06
- Facts verified
- 2026-10-15
