question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dynmap error "MariaDB-JDBC classes not found" with PaperMC 1.16.1

See original GitHub issue

Background

I’m running a Minecraft server on Debian 10 using Java 11, PaperMC 1.16.1, Dynmap 3.1-beta1-spigot and MariaDB 10.5.4. In my connections.txt file for Dynmap, I’ve been using type: mysql as the storage driver up until now and while that works well for me, I found out earlier today that it can be set to type: mariadb as well.

Problem

When I use mariadb instead of mysql in my connections.txt file, Dynmap spits out the following error message on startup:

java[8143]: [15:38:57 ERROR]: [dynmap] MariaDB-JDBC classes not found - MariaDB data source not usable
java[8143]: [15:38:57 ERROR]: [dynmap] Map storage initialization failure
java[8143]: [15:38:57 INFO]: [dynmap] Unloaded 0 components.
java[8143]: [15:38:57 INFO]: [dynmap] Disabled

A similar error message was reported by someone else in #1674, but that user was using Forge while I’m using PaperMC which is supposed to come bundled with the org.mariadb.jdbc driver.

Solutions I’ve tried

• Downloading the MariaDB JDBC driver .jar file manually and setting the CLASSPATH variable to its location. • Specifying the CLASSPATH variable at runtime via java -cp </path/to/jar/file>. • Creating a subfolder called lib in the Minecraft folder and copying the .jar file there. • Installing the MariaDB JDBC driver with apt via the libmariadb-java package.

Any help with this issue would be appreciated.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
whalehubcommented, May 25, 2021

I didn’t delete it because I would like to know why you would want to use the mariadb option instead of mysql (apart from correctness and the fact that looks better). Does the MariaDB JDBC driver provide better performance or something?

Yeah, according to some benchmarks I found online, the MariaDB JDBC driver performs better than the MySQL one. I’m gonna close this issue though because the PostgreSQL discussion that is linked earlier in this thread made me realize that Dynmap itself has to be compiled with the MariaDB driver for the mariadb option to work. Technically, the error message I received is the result of things working as expected and not a bug.

1reaction
julius1504commented, Sep 1, 2022

to use mariadb/mysql you need to install a mod on your server. this one works with the forge and fabric version of the game. https://www.curseforge.com/minecraft/mc-mods/mysql-jdbc

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dynmap with MariaDB 'No connector found' - Reddit
I keep on getting the error in Dynmap that the 'connector is not found'. I've also checked the GitHub issues, but everyone keeps...
Read more >
Spigot - Dynmap® | Page 69 - High Performance Minecraft
Hi, I'm running MySql and Java 16 with Paperclip. ... Code (Java):. ERROR [[STDERR] ] com.mysql.jdbc.Driver Loading class `com.mysql.jdbc.Driver'.
Read more >
awesome-stars from ITninja04 - Coder Social Home
A curated list of my GitHub stars from Coder Social.
Read more >
List of Spigotmc-minecraft-servers Github Repository Issues
Hey again! This error comes up whenever doing /reports on my hub servers. No reports or archived reports are loaded in the GUI...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found