Database Setup
By default every player's fishing data is a YAML file in plugins/BusyFishing/playerdata/. That
needs no setup and suits a single server. Switch to MySQL or MariaDB to share progress between
servers or to keep data in your existing database.
Switching on MySQL
In config.yml:
database:
enabled: true
type: mysql # mysql or mariadb
host: localhost
port: 3306
database: busyfishing
username: root
password: ""
pool-size: 10
connection-timeout: 5000
Create the database first; BusyFishing creates its table (busyfishing_players) itself. Restart
the server after changing these settings.
Keep the password out of shared screenshots and pastes: it sits in plain text in config.yml.
Saving
storage:
# How often changed player data is written to disk or the database.
autosave-minutes: 5
Data is also saved when a player leaves and when the server stops. All database work runs off the main thread.
Server-wide data
The codex (modules/codex/data.yml) and the totems (modules/totems/data.yml) are kept as files
in the plugin folder either way.
Moving existing YAML data
There is no built-in converter between BusyFishing's YAML files and MySQL. Choose the storage before players start, or ask on Discord for help moving.