Preva1l is a dev
Preva1l is a dev
  • Finally a Decent Developer? (jokes, im alright though!)
  • Fadah
    • Fadah
    • Setup
      • Database
      • Multi Server
      • Blacklists
    • Commands & Permissions
    • Developer API
      • Accessing & Using Data
      • Events
      • Adding a Economy Hook
  • Dungeons Terminals
    • Dungeons Terminals
  • Fadsb
    • Fadsb
Powered by GitBook
On this page
  • Prerequisites (Requirements)
  • Configuration
  • Database Hosting
  • MySQL
  • MariaDB
  • MongoDB
Edit on GitHub
  1. Fadah
  2. Setup

Database

For help setting up an external database.

Prerequisites (Requirements)

You must have a MySQL, MariaDB or MongoDB server setup. The server should be running on the latest version. (Help on finding a host is at the bottom)

Configuration

Find the config.yml file in plugins/Fadah/ and scroll down the database section.

Following the example below. Replace <username> with your database username. etc...

config.yml
database:
  # Supported: SQLITE, MYSQL, MARIADB, MONGO
  type: "MYSQL"
  # Below is not required for SQLITE
  # For MySQL and MariaDB, uri must be a JDBC uri
  uri: "jdbc:mysql://<username>:<password>@<hostname>:<port>/Fadah"
  database: "Fadah"
config.yml
database:
  # Supported: SQLITE, MYSQL, MARIADB, MONGO
  type: "MARIADB"
  # Below is not required for SQLITE
  # For MySQL and MariaDB, uri must be a JDBC uri
  uri: "jdbc:mariadb://<username>:<password>@<hostname>:<port>/Fadah"
  database: "Fadah"
config.yml
database:
  # Supported: SQLITE, MYSQL, MARIADB, MONGO
  type: "MONGO"
  # Below is not required for SQLITE
  # For MySQL and MariaDB, uri must be a JDBC uri
  uri: "mongodb://<username>:<password>@<hostname>:<port>/?authSource=admin"
  database: "Fadah"
config.yml
database:
  # Supported: SQLITE, MYSQL, MARIADB, MONGO
  type: "MONGO"
  # Below is not required for SQLITE
  # For MySQL and MariaDB, uri must be a JDBC uri
  uri: "mongodb+srv://<username>:<password>@<hostname>/?retryWrites=true&w=majority&appName=myapp"
  database: "Fadah"

Once you have completed the configuration, fully restart your Minecraft server and you will now be connected!

Database Hosting

Most Minecraft hosting plans come with an included MySQL database. You can use this. However if you do not have access to said database with your host here are some you can use.

MySQL

MariaDB

MongoDB

Last updated 10 months ago

Google Cloud: Digital Ocean:

CloudWays: Amazon Web Services:

MongoDB Atlas: (Normal MongoDB is self hosted only)

https://cloud.google.com/mysql/mysql-hosting
https://www.digitalocean.com/products/managed-databases-mysql
https://www.cloudways.com/en/mariadb-hosting.php
https://aws.amazon.com/rds/mariadb/
https://www.mongodb.com/products/platform/atlas-database