Databases can be used by certain plugins to allow for a more efficient, organized method of storing large amounts of data. Common plugins that can utilize MySQL databases are Dynmap, CoreProtect, and LuckPerms.
Adding MySQL Databases
From the Godlike Panel select the Databases tab on the navigation bar.
Click New Database to start the process.
In the first box, you assign the database a name. In the second, you can specify what IP addresses can connect to the database. We recommend leaving it as the default wildcard of %, which will allow all IP addresses to connect.
Managing Databases
Once you have created the database, it will appear in your database list. From here you can view basic details, advanced details, import to the database, export from the database, or delete the database.
Importing MySQL Databases through the panel
To import a database you first have to create a new database in your Godlike server. Once it is created, you can then click on the import button which will open a prompt. Fill in the form with the database connection details from the remote MySQL server. Keep in mind that database imports are limited to 5GB.
Importing an .SQL database dump through HeidiSQL
IMPORTANT
Keep in mind that not all .SQL files such as sqlite and others can't be imported into MySQL.
To import an .SQL database dump through HeidiSQL first connect to your database, select your database then click on the File menu option and select Run SQL file, this will run your .SQL file in HeidiSQL and should import it into your database.
Examples of how to configure a database in different plugins
➤ Luckperms:
storage-method: MySQL
# The following block defines the settings for remote database storage methods.
#
# - You don't need to touch any of the settings here if you're using a local storage method!
# - The connection detail options are shared between all remote storage types.
data:
# Define the address and port for the database.
# - The standard DB engine port is used by default
# (MySQL: 3306, PostgreSQL: 5432, MongoDB: 27017)
# - Specify as "host:port" if differs
address: wing3.godlike.host:3306
# The name of the database to store LuckPerms data in.
# - This must be created already. Don't worry about this setting if you're using MongoDB.
database: s1183_test
# Credentials for the database.
username: u1183_9Zpg9kHK5W
password: 'Q0OSk3wB.uoMMVACY0D=pqWy'
➤ LiteBans
sql:
# H2, MySQL, MariaDB, and PostgreSQL are supported database drivers.
driver: MySQL
## MySQL/PostgreSQL settings ##
# If using H2, the database will be stored in the LiteBans plugin folder,
# and most of these settings won't apply.
# Database server address.
address: wing3.godlike.host:3306
# Database name, username and password.
database: s1183_test
username: u1183_9Zpg9kHK5W
password: 'Q0OSk3wB.uoMMVACY0D=pqWy'
Database:
Type: MySQL
MySQL:
Host: wing3.godlike.host
Port: 3306
User: u1183_9Zpg9kHK5W
Password: Q0OSk3wB.uoMMVACY0D=pqWy
Database: s1183_test
# Launch options to append after mysql driver address
Launch_options: "?rewriteBatchedStatements=true&useSSL=false&serverTimezone=UTC"
➤ AdvancedBan
# If set to false all bans will be saved locally in a HSQLDB-Database
UseMySQL: true
MySQL:
IP: wing3.godlike.host
DB-Name: s1183_test
Username: u1183_9Zpg9kHK5W
Password: Q0OSk3wB.uoMMVACY0D=pqWy
Port: 3306
Properties: 'verifyServerCertificate=false&useSSL=false&useUnicode=true&characterEncoding=utf8'