{"id":101971,"date":"2026-06-05T23:38:01","date_gmt":"2026-06-05T20:38:01","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/minecraft-mysql-jdbc\/"},"modified":"2026-06-05T23:38:01","modified_gmt":"2026-06-05T20:38:01","slug":"minecraft-mysql-jdbc","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/minecraft-mysql-jdbc\/","title":{"rendered":"Minecraft MySQL JDBC"},"content":{"rendered":"<p># MySQL Connector\/J for Minecraft<\/p>\n<p>Oracle&#8217;s official MySQL Connector\/J repackaged as a Bukkit\/Spigot\/Paper plugin and a Fabric\/Forge\/NeoForge mod.<\/p>\n<p>> **Heads up:** CraftBukkit\/Spigot\/Paper have shipped MySQL Connector\/J on the server&#8217;s parent classloader since 1.4 (the &#8220;ebeans&#8221; era). For the **default JDBC path** (`Class.forName(&#8220;com.mysql.cj.jdbc.Driver&#8221;)` \/ `DriverManager.getConnection`) the bundled driver wins \u2014 installing this mod doesn&#8217;t change that. This mod is primarily useful on **Fabric**, **NeoForge**, and Bukkit forks that strip the bundled driver. If you specifically want this mod&#8217;s connector instead of the bundled one (e.g. for a newer connector version), use the public API \u2014 see [Using this mod&#8217;s connector via the public API](#using-this-mods-connector-via-the-public-api) below.<\/p>\n<p>## What&#8217;s in the jar<\/p>\n<p>`com.mysql:mysql-connector-j:9.1.0` plus minimal loader stubs for Spigot, Forge 1.12, Forge 1.13\u20131.16, Forge 1.17\u20131.20, NeoForge 1.21+, and Fabric. No relocation \u2014 `com.mysql.cj.*` classes stay at canonical paths so `Class.forName(&#8220;com.mysql.cj.jdbc.Driver&#8221;)` finds them. `META-INF\/services\/java.sql.Driver` is preserved so the driver auto-registers with `DriverManager`.<\/p>\n<p>The `mysql:mysql-connector-java` \u2192 `com.mysql:mysql-connector-j` rename happened in connector-j 8.x. The class name `com.mysql.cj.jdbc.Driver` works across both old and new artifact coords, so the runtime probe is stable.<\/p>\n<p>## Compatibility<\/p>\n<p>| Loader | MC versions | Notes |<br \/>\n|&#8212;|&#8212;|&#8212;|<br \/>\n| Bukkit \/ Spigot \/ Paper \/ Folia \/ Purpur | 1.8 \u2192 current | usually unnecessary \u2014 driver is server-bundled |<br \/>\n| Fabric | 1.16.1 \u2192 current | needs Fabric Loader 0.14+ |<br \/>\n| Forge | 1.12 \u2192 1.20 | universal jar, no Mixins |<br \/>\n| NeoForge | 1.21 \u2192 current | drop into `mods\/` |<\/p>\n<p>Java 8+ required.<\/p>\n<p>## Connection-string gotchas worth knowing<\/p>\n<p>The 5.1.x and 8+ drivers default to behaviours that almost always need overriding for real deployments:<\/p>\n<p>&#8211; `useSSL=true` is the default \u2014 fails against any MySQL server without a public CA-signed cert. Set `useSSL=false` for plaintext, or add `verifyServerCertificate=false` if you have a self-signed cert.<br \/>\n&#8211; `caching_sha2_password` (MySQL 8 default) needs `allowPublicKeyRetrieval=true` for unencrypted-channel auth, otherwise the handshake fails with `Public Key Retrieval is not allowed`.<br \/>\n&#8211; `rewriteBatchedStatements=true` folds JDBC batch INSERTs into multi-row form on the wire. Without it, batch operations are still N round-trips.<\/p>\n<p>Typical URL:<br \/>\n&#8220;`<br \/>\njdbc:mysql:\/\/host:3306\/db?useSSL=false&#038;allowPublicKeyRetrieval=true&#038;rewriteBatchedStatements=true<br \/>\n&#8220;`<\/p>\n<p>MariaDB speaks the MySQL protocol on the wire, so this driver works against MariaDB too. If you want the MariaDB-native connector instead, it&#8217;s a separate driver and not in scope here.<\/p>\n<p>## Versioning<\/p>\n<p>The jar version tracks connector-j one-to-one. `9.1.0+2026-04-25` ships connector-j 9.1.0; the suffix is the build date. A scheduled GitHub Action checks Maven Central daily and bumps automatically.<\/p>\n<p>## Using this mod&#8217;s connector via the public API<\/p>\n<p>If you specifically want this mod&#8217;s connector instead of the bundled one \u2014 to upgrade past a stale fork&#8217;s bundled driver, or to test a newer connector version \u2014 your plugin softdepends on this holder and calls `MinecraftMysqlJdbc.connect(url, props)`:<\/p>\n<p>&#8220;`yaml<br \/>\n# in your plugin.yml<br \/>\nsoftdepend: [mysql-jdbc]<br \/>\n&#8220;`<\/p>\n<p>&#8220;`java<br \/>\nProperties props = new Properties();<br \/>\nprops.setProperty(&#8220;user&#8221;, &#8220;grim&#8221;);<br \/>\nprops.setProperty(&#8220;password&#8221;, &#8220;&#8230;&#8221;);<br \/>\nConnection c;<br \/>\ntry {<br \/>\n    c = MinecraftMysqlJdbc.connect(&#8220;jdbc:mysql:\/\/host:3306\/db?useSSL=false&#8221;, props);<br \/>\n} catch (NoClassDefFoundError | ClassNotFoundException notInstalled) {<br \/>\n    c = DriverManager.getConnection(&#8220;jdbc:mysql:\/\/host:3306\/db?useSSL=false&#8221;, props);<br \/>\n}<br \/>\n&#8220;`<\/p>\n<p>`MinecraftMysqlJdbc` wraps a child-first `URLClassLoader` pointing at this jar, parented to the platform classloader so `com.mysql.cj.*` must come from this jar (not the bundled chain). The returned `Connection` is a standard `java.sql.Connection` \u2014 keep your casts to `java.sql.*` interfaces; the impl class lives in the child-first classloader and won&#8217;t down-cast across the boundary.<\/p>\n<p>API surface (all static):<\/p>\n<p>| Method | Returns |<br \/>\n|&#8212;|&#8212;|<br \/>\n| `connect(String url)` | open `Connection` through this driver |<br \/>\n| `connect(String url, Properties props)` | as above with props |<br \/>\n| `driver()` | the `java.sql.Driver` instance |<br \/>\n| `driverVersion()` | connector-j version (e.g. `&#8221;9.1&#8243;`) |<br \/>\n| `eagerInit()` | warm the classloader at plugin enable |<br \/>\n| `shutdown()` | release file handles on plugin disable |<\/p>\n<p>Grim Anti-Cheat&#8217;s MySQL backend uses this API automatically when this holder is installed.<\/p>\n<p>## License<\/p>\n<p>GPL-2.0 with the Universal FOSS Exception 1.0. The exception makes the driver compatible with any FOSS-licensed Minecraft plugin or mod (it&#8217;s the same license Oracle ships with the Connector\/J binary). Modrinth&#8217;s license tag shows GPL-2.0-only because the SPDX list doesn&#8217;t have a single identifier for the GPL-2 + FOSS Exception combo \u2014 full text in `LICENSE`.<\/p>\n<p>&#8212;<\/p>\n<p>Issues, source: GitHub.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Up-to-date MySQL Connector\/J wrapped as a universal Forge\/Fabric\/Bukkit library for plugins like Grim.<\/p>\n","protected":false},"featured_media":101972,"template":"","meta":{"_minecraft_slug":"minecraft-mysql-jdbc","_minecraft_project_id":"2UdFEObs","_minecraft_author":"Axionize","_minecraft_license":"GPL-2.0-only","_minecraft_downloads":55,"_minecraft_follows":0,"_minecraft_client_side":"unknown","_minecraft_server_side":"unknown","_minecraft_storage_type":"zip","_minecraft_archive_name":"minecraft-mysql-jdbc.zip","_minecraft_size_bytes":4914299,"_minecraft_version_count":2,"_minecraft_updated_at":"2026-05-15T21:03:15.012887Z","_minecraft_date_created":"2026-05-03T05:21:56.971928Z","_minecraft_date_modified":"2026-05-03T13:05:46.220496Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/minecraft-mysql-jdbc","_minecraft_icon_attachment_id":101972,"_minecraft_imported_at":"2026-06-05T20:38:02+00:00","_minecraft_import_hash":"fee79021f7d4258125fb680f9513fe02","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[124,97,125,104,873,158,127,128,98,129],"mod_loader":[130,99,131,106,160,132,133,100,134],"minecraft_version":[385,438,446,449,110,111,112,113,114,115,116,117,118,119,120,46,47,48,49,50,51,52,53,54,55,56,57,58,59,36,60,93,94,101,102,62,37,40,41,73,74,38,78,79,80,81,82,83,167,163],"class_list":["post-101971","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-bukkit","mod_category-fabric","mod_category-folia","mod_category-forge","mod_category-library","mod_category-neoforge","mod_category-paper","mod_category-purpur","mod_category-quilt","mod_category-spigot","mod_loader-bukkit","mod_loader-fabric","mod_loader-folia","mod_loader-forge","mod_loader-neoforge","mod_loader-paper","mod_loader-purpur","mod_loader-quilt","mod_loader-spigot","minecraft_version-1-12-2","minecraft_version-1-13","minecraft_version-1-13-1","minecraft_version-1-13-2","minecraft_version-1-14","minecraft_version-1-14-1","minecraft_version-1-14-2","minecraft_version-1-14-3","minecraft_version-1-14-4","minecraft_version-1-15","minecraft_version-1-15-1","minecraft_version-1-15-2","minecraft_version-1-16","minecraft_version-1-16-1","minecraft_version-1-16-2","minecraft_version-1-16-3","minecraft_version-1-16-4","minecraft_version-1-16-5","minecraft_version-1-17","minecraft_version-1-17-1","minecraft_version-1-18","minecraft_version-1-18-1","minecraft_version-1-18-2","minecraft_version-1-19","minecraft_version-1-19-1","minecraft_version-1-19-2","minecraft_version-1-19-3","minecraft_version-1-19-4","minecraft_version-1-20","minecraft_version-1-20-1","minecraft_version-1-20-2","minecraft_version-1-20-3","minecraft_version-1-20-4","minecraft_version-1-20-5","minecraft_version-1-20-6","minecraft_version-1-21","minecraft_version-1-21-1","minecraft_version-1-21-10","minecraft_version-1-21-11","minecraft_version-1-21-2","minecraft_version-1-21-3","minecraft_version-1-21-4","minecraft_version-1-21-5","minecraft_version-1-21-6","minecraft_version-1-21-7","minecraft_version-1-21-8","minecraft_version-1-21-9","minecraft_version-26-1","minecraft_version-26-1-1","minecraft_version-26-1-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Minecraft MySQL JDBC - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/minecraft-mysql-jdbc\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Minecraft MySQL JDBC - Minecraft\" \/>\n<meta property=\"og:description\" content=\"Up-to-date MySQL Connector\/J wrapped as a universal Forge\/Fabric\/Bukkit library for plugins like Grim.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/minecraft-mysql-jdbc\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/minecraft-mysql-jdbc\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/minecraft-mysql-jdbc\\\/\",\"name\":\"Minecraft MySQL JDBC - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/minecraft-mysql-jdbc\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/minecraft-mysql-jdbc\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/minecraft-mysql-jdbc-icon-01050cef48bf60d99a5d053c97e8e4d4db78cba5.png\",\"datePublished\":\"2026-06-05T20:38:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/minecraft-mysql-jdbc\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/minecraft-mysql-jdbc\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/minecraft-mysql-jdbc\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/minecraft-mysql-jdbc-icon-01050cef48bf60d99a5d053c97e8e4d4db78cba5.png\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/minecraft-mysql-jdbc-icon-01050cef48bf60d99a5d053c97e8e4d4db78cba5.png\",\"width\":256,\"height\":256},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/minecraft-mysql-jdbc\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Minecraft MySQL JDBC\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Minecraft MySQL JDBC - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/minecraft-mysql-jdbc\/","og_locale":"en_US","og_type":"article","og_title":"Minecraft MySQL JDBC - Minecraft","og_description":"Up-to-date MySQL Connector\/J wrapped as a universal Forge\/Fabric\/Bukkit library for plugins like Grim.","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/minecraft-mysql-jdbc\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/minecraft-mysql-jdbc\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/minecraft-mysql-jdbc\/","name":"Minecraft MySQL JDBC - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/minecraft-mysql-jdbc\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/minecraft-mysql-jdbc\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/minecraft-mysql-jdbc-icon-01050cef48bf60d99a5d053c97e8e4d4db78cba5.png","datePublished":"2026-06-05T20:38:01+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/minecraft-mysql-jdbc\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/minecraft-mysql-jdbc\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/minecraft-mysql-jdbc\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/minecraft-mysql-jdbc-icon-01050cef48bf60d99a5d053c97e8e4d4db78cba5.png","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/minecraft-mysql-jdbc-icon-01050cef48bf60d99a5d053c97e8e4d4db78cba5.png","width":256,"height":256},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/minecraft-mysql-jdbc\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"Minecraft MySQL JDBC"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/101971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media\/101972"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=101971"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=101971"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=101971"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=101971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}