BlueMap icon indicating copy to clipboard operation
BlueMap copied to clipboard

Add MySQL support

Open TrainerGamer opened this issue 6 years ago • 20 comments

(This has been briefly discussed with Blue on Discord, however, I still thought it was something worth putting here in-case it becomes a possibility in the future/something worth further investigation.)

Add MySQL support to Bluemap to allow you to store the renders with MySQL instead of on the main server files. This would be a very useful addition as some Minecraft server hosts meter the amount of main server storage you can have, which can quickly be filled with the renders. However, a lot of hosts offer unmetered MySQL storage (within their fair-use policy).

Take one host I help out on their Discord: On all their Minecraft server plans, there is a 75GB soft-limit on the main server storage, this can be removed by applying for a storage whitelist via a ticket. However this requires good reason and if most of the storage is taken up by Dynmap renders, you are not eligible for a storage whitelist. Meaning that they would basically be stuck with either having to delete their Dynmap, or switching to MySQL. But if someone was using Bluemap and was denied the storage whitelist (I assume they would be irrespective of if they were using Dynmap or Bluemap, but I may be wrong), they would basically be forced to delete it as there is no MySQL support. This same host, however, offers 3 MySQL databases with each of their MC plans. These MySQL databases are unmetered within fair-use. So basically you can use as much MySQL storage as you like so long as you are not affecting other users/the performance of the node.

(Edit: The policy regarding storage at this particular host [PebbleHost] has changed since this issue was made. However the original point still stands as a similar policy to the one listed here is probably employed at other hosts.)

I hope you can see my point of how useful adding MySQL support would be and I hope you take it into further consideration :)

TrainerGamer avatar Aug 31 '20 09:08 TrainerGamer

It would be better if Nginx can display the real-time location of the players after using mysql

skycatcher avatar Sep 13 '20 06:09 skycatcher

I would really like to see this as well, as I have reached my cap of storage of my server on the host that (I think) you are talking about.

panic3564 avatar Oct 14 '20 20:10 panic3564

@larssieboy18 What host do you think I am talking about 😆

TrainerGamer avatar Oct 14 '20 20:10 TrainerGamer

@larssieboy18 What host do you think I am talking about 😆

Pebble right? :)

panic3564 avatar Oct 15 '20 07:10 panic3564

@larssieboy18 What host do you think I am talking about 😆

Pebble right? :)

Yessir

TrainerGamer avatar Oct 15 '20 07:10 TrainerGamer

This is the only reason I'm avoiding this plugin right now. I would honestly pay money for MySQL support haha!!

Regardless, there should be an in-game command to convert the flat-files into MySQL

hamcoremusic avatar Nov 07 '20 12:11 hamcoremusic

+1 MySQL is almost a requirement for such large data structures like dynmap or BlueMaps

mindgam3s avatar Mar 31 '21 14:03 mindgam3s

+1

ghost avatar Apr 17 '21 11:04 ghost

+1, this is the only reason I'm not using the plugin yet.

fireFerry avatar Apr 28 '21 11:04 fireFerry

+1

northeastprince avatar May 14 '21 23:05 northeastprince

(Node to also consider MongoDB support with this)

TBlueF avatar Jul 15 '21 10:07 TBlueF

If you're alright with using a library, helper (by the developer of LuckPerms) is probably the best utility for supporting MySQL, as well as other datasources such as MongoDB.

PikaMug avatar Oct 13 '21 05:10 PikaMug

Havent looked into what helper is exactly, but it seems to depend on spigot,.. bluemap is a multiplatform-project .. so that's a no-go ^^

TBlueF avatar Oct 13 '21 06:10 TBlueF

Its database modules should be multiplatform; the rest obviously isn't. Could always fork and use only what you need, considering it's MIT licensed.

PikaMug avatar Oct 14 '21 03:10 PikaMug

Apparently for MySQL, you need to add JDBC connector jar for fabric and forge because it's not included directly like in spigot. Here I have found a project that did that : https://github.com/kosma/mysql-jdbc-mod

mrsolarius avatar Jan 14 '22 20:01 mrsolarius

@mrsolarius there is already a working version with sql support on a branch ;) it just needs more testing and waits for a couple of further changes to the configs etc to be releaseable

TBlueF avatar Jan 14 '22 21:01 TBlueF

@larssieboy18 What host do you think I am talking about laughing

Pebble right? :)

Yessir

Just so you know, pebble has a storage limit on MySQL too :D I've had my database deleted before it was about 120-130GB. If your world(s) isn't too big you probably won't get there but just letting you know.

kirin-3 avatar Apr 17 '22 05:04 kirin-3

Just so you know, pebble has a storage limit on MySQL too :D I've had my database deleted before it was about 120-130GB. If your world(s) isn't too big you probably won't get there but just letting you know.

Yeah, it is something they've changed since this issue was made haha

I'll edit the original issue post to clear up any confusion 😄

TrainerGamer avatar Apr 17 '22 08:04 TrainerGamer

Implemented in 2.0

TBlueF avatar Aug 04 '22 12:08 TBlueF

Wonderful !!! Thank you 😌

mrsolarius avatar Aug 04 '22 12:08 mrsolarius