Many Minecraft plugins require a database to store player data, stats, and configuration. Learn how to set up, configure, and maintain MySQL databases for your server.
- MySQL vs MariaDB
MySQL is the industry standard for Minecraft. MariaDB is a free, open-source MySQL fork with better performance. Choose based on your host's offerings. Most providers (including Skyzer Cloud) support both. - Creating a Database
In your hosting panel: Go to Databases → Create Database → Set name (e.g., "minecraft_main") and username/password. Note these credentials for plugin configuration. - Plugin Configuration
Most plugins use JDBC URLs. Example: jdbc:mysql://localhost:3306/minecraft_main?user=mcuser&password=securepass. Consult your plugin's documentation for exact format. - Security Best Practices
Use strong passwords (20+ characters, mixed case, numbers, symbols). Create separate databases for different plugins. Regularly audit database user permissions. Use localhost connections only (never expose external). - Automatic Backups
Set up daily MySQL backups. Most control panels offer automated backup features. Also backup manually before major updates: mysqldump -u user -p database > backup.sql - Performance Optimization
Index frequently queried columns. Clean old data regularly. Monitor database size. Set up connection pooling in plugins. Consider read replicas for high-traffic servers. - Troubleshooting Connection Issues
Check database is running. Verify credentials match. Ensure plugin version supports your MySQL version. Check firewall rules. Look at server logs for connection errors. - Popular Minecraft Plugins That Use Databases
LiteBans (bans/mutes), Jobs (player economy), Residence (land claiming), Vault (money/economy), CoreProtect (grief protection), ShiningRPG (RPG stats), PlayersOnline (statistics).