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.

[Add Wiki Page] Dynmap MySQL Setup

See original GitHub issue

I’d like to propose a Wiki page be added for setting up Dynmap with MySQL.

Instructions:

  1. Download the MySQL jar file from this URL: http://dev.mysql.com/downloads/connector/j/
  2. Unzip the downloaded file, rename the jar to ‘mysql.jar’ and move the file to ‘{minecraft base dir}/plugins/dynmap/mysql.jar’
  3. Edit your configuration.txt to appear similar to code the below (for lines 18-35) 3.1. Edit the database hostname, port, database, username, password, prefix to your appropriate values 3.2. Normally hostname: localhost & port: 3306 will not need to be changed 3.3. database is the name of the MySQL schema, depending on your setup you will want to change that 3.4. prefix is the text that gets applied to the names of the tables that Dynmap generates, useful if you only have one DB/Schema for your server
  4. Start your Bukkit server and watch the magic happen
# Map storage scheme: only uncomment one 'type' value
#  filetree: classic and default scheme: tree of files, with all map data under the directory indicated by 'tilespath' setting
#  sqlite: single SQLite database file (this can get VERY BIG), located at 'dbfile' setting (default is file dynmap.db in data directory)
#  mysql: MySQL database, at hostname:port in database, accessed via userid with password
storage:
  # Filetree storage (standard tree of image files for maps)
  #type: filetree
  # SQLite db for map storage (uses dbfile as storage location)
  #type: sqlite
  #dbfile: dynmap.db
  # MySQL DB for map storage (at 'hostname':'port' in database 'database' using user 'userid' password 'password' and table prefix 'prefix'
  type: mysql
  hostname: localhost
  port: 3306
  database: [DB name]
  userid: [Username]
  password: [Password]
  prefix: ""

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
rautamiekkacommented, Mar 19, 2019

If you only consider performance, is MySQL faster than filetree? I can’t see anywhere if people compared

Well, when I tested MySQL (not vanilla) against file tree it was something like 3-5x faster loading the tiles just by seeing how quickly the tiles showed up.

But I figured that boost ain’t necessarily needed, and made it a whole lot harder to touch the files, not to mention require increasingly more RAM to keep the performance up, so we went back to file tree.

And that’s assuming you can conf the MySQL Server correctly to use the available resources.

0reactions
jwshieldscommented, May 24, 2020

I don’t see why it wouldn’t

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Setup Dynmap with MySQL - Knowledgebase
How to Setup Dynmap with MySQL Print · 1. Go on your control panel and start by ensuring Dynmap has been installed and...
Read more >
How to install and configure Dynmap - DedicatedMC
Step 1: Download the Dynmap jar from the official SpigotMC page. Step 2: Install the Dynmap plugin jar onto your server in the...
Read more >
How to Install the Dynmap Plugin in Minecraft - Apex Hosting
How to install Dynmap · Go to the official Dynmap page on Bukkit or Spigot and click on the File tab. · Find...
Read more >
Setting up Dynmap on a Standalone Webserver using SSL ...
The config variable is meant to come from a script, standalone/config.js. I assume the RewriteRule /maps/build/standalone/(.*) http://localhost: ...
Read more >
Dynmap - Bloom Docs
Spigot/Paper: Download the Dynmap plugin and place into the plugins folder then restart your server to generate configuration.txt . Create a MySQL database....
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 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