Creating a Database
Create a new database for your server:Create Database
Response
Set Remote Access
Configure the remote connection host:
%- Allow connections from anywhere192.168.1.%- Allow from specific subnetlocalhost- Local connections only
Database Naming
Database names are automatically prefixed with your server identifier:- You specify:
minecraft - Actual database:
s1_minecraft - Username:
u1_xK9pL2mQ(random)
Listing Databases
View all databases for a server:List Databases
Response
The password is not included in list responses for security. It’s only returned when creating a database or rotating the password.
Database Connection Details
Use these details to connect from your game server:Example Plugin Config
JDBC Connection String
For Java applications:PHP PDO
Rotating Passwords
Change the database password for security:Rotate Password
Response
Deleting a Database
Remove a database permanently:Delete Database
Success
Database Limits
Servers have a maximum number of databases they can create:Check Limit
Response
Error Response
Contact your server administrator to increase the database limit if needed.
Remote Access Configuration
Theremote field controls which hosts can connect:
Allow All (Default)
Specific IP
192.168.1.100.
IP Range/Subnet
10.0.0.0/16 subnet.
Localhost Only
Some database hosts may restrict remote access regardless of this setting. Check with your host provider.
Common Use Cases
Minecraft Plugin Storage
Minecraft Plugin Storage
Many Minecraft plugins require MySQL for data storage:LuckPerms:CoreProtect:
Game Statistics & Leaderboards
Game Statistics & Leaderboards
Store player stats, rankings, and leaderboards:
Website Integration
Website Integration
Connect your server to a website or forum:
- Sync player ranks between game and site
- Display online players on website
- Integrated donation systems
- Ban lists and appeal systems
Multi-Server Synchronization
Multi-Server Synchronization
Share data across multiple game servers:
- Cross-server chat
- Global economy
- Network-wide bans
- Synchronized player data
Accessing via Command Line
Connect to your database using the MySQL client:Activity Logging
Database operations are logged:Example Logs
Best Practices
Use Descriptive Names
Use Descriptive Names
Name databases based on their purpose:
economy, stats, auth, etc. This makes management easier.Regular Backups
Regular Backups
Database backups are separate from server file backups. Use
mysqldump or your host’s backup tools:Limit Remote Access
Limit Remote Access
If you don’t need external connections, use
localhost for the remote field to improve security.Monitor Connection Usage
Monitor Connection Usage
Some database hosts limit concurrent connections. Monitor your plugins’ connection pool settings.
Troubleshooting
Cannot Connect to Database
Cannot Connect to Database
- Verify host and port are correct
- Check remote access configuration
- Ensure password is correct (try rotating)
- Verify firewall allows MySQL port (3306)
- Check database host is online
Access Denied Errors
Access Denied Errors
- Confirm username and password
- Check
remotefield allows your IP - Verify database exists on the host
- Check database host allows external connections
Too Many Connections
Too Many Connections
- Reduce plugin connection pool sizes
- Enable connection pooling
- Contact host to increase limit
- Check for connection leaks in plugins
Database Limit Reached
Database Limit Reached
You’ve hit the maximum databases for your server. Options:
- Delete unused databases
- Request limit increase from admin
- Consolidate data into fewer databases
