Skip to content

MySQL Setup

RoboMWM edited this page Feb 23, 2021 · 5 revisions

Warning: It is not recommended to use SQL storage for GriefPrevention! It is recommended that you stick with the default flatfile storage!

Configure MySQL

Edit plugins/GriefPreventionData/config.yml and locate the following:

  Database:
    URL:
    UserName:
    Password:

Change To:

  Database:
    URL: jdbc:mysql://MYSQL_HOSTNAME:3306/MYSQL_DATABASE
    UserName: MYSQL_USERNAME
    Password: MYSQL_PASSWORD

Replace your MYSQL_HOSTNAME, MYSQL_DATABASE, MYSQL_USERNAME, and MYSQL_PASSWORD with the information your hosting service provides.


Reverting back to flatfile

This is a completely-untested script so use at your own risk. https://gist.github.com/ar00n/f1ac69dd52554e56f012c8d631bed5d7