Configure MySQL
Goal
Run PvPIndex Factions on MySQL/MariaDB instead of embedded H2.
Steps
- Create a database and user on your MySQL/MariaDB server.
- Open
plugins/PvPIndexFactions/database.yml. - Set:
type: mysqlmysql.hostmysql.portmysql.databasemysql.usernamemysql.password
- Keep pool defaults first, then tune after load testing.
- Restart the server.
- Check logs for successful connection and table initialization.
Hardening tips
- Use a dedicated DB user with only required permissions.
- Restrict DB access to your server IP.
- Enable TLS if the database is remote.
Verify success
- No SQL connection errors at startup.
- Faction actions (
/f create,/f claim) persist after restart.