Overview
XyraPanel allows you to create and manage MySQL databases directly from your server panel. Many plugins, mods, and game servers require databases to store player data, statistics, and other persistent information.Accessing Databases
Navigate to your server’s database management:Prerequisites
Database creation requires:
- A database host configured by your administrator
- Database allocation available for your server
- The
server.database.createpermission
Creating a Database
Configure Database
Fill in the database details:
- Database Name
- Remote Access
Enter a descriptive name for your database (e.g., This prevents conflicts between servers.
playerdata, statistics).The actual database name will be prefixed with your server ID:Request Body Example
Request Body Example
Response Example
Response Example
meta field.Database Information
Each database displays:- Connection Details
- Access Control
- Name: Full database name (prefixed)
- Host: Database server hostname or IP
- Port: Database server port (usually 3306)
- Username: Database user (prefixed with server ID)
Connecting to Your Database
Use the connection details to connect from your plugins or applications:JDBC Connection String
For Java applications (Minecraft plugins):Rotating Passwords
If you lose your password or need to change it for security:
API endpoint:
Deleting Databases
API endpoint:
Database Limits
Administrators can set database limits per server:- 0 = Unlimited: Create as many databases as the host allows
- 1 database: Maximum of 1 database
- 5 databases: Maximum of 5 databases
- Delete unused databases before creating new ones
- Or ask an administrator to increase your limit
Check your server’s database limit in the server details or by attempting to create a database. You’ll see an error if you’ve reached the limit.
Database Host Status
If no database host is available, you’ll see a warning:No Database Host
What this means: Your administrator hasn’t configured a MySQL/MariaDB database host for XyraPanel.What to do: Contact your administrator to set up database hosting. They’ll need to add a database host in the admin panel under Database Hosts.
Common Use Cases
- Minecraft Plugins
- Web Applications
- Game Servers
Many plugins require databases:
- LuckPerms: Store permissions across multiple servers
- CoreProtect: Log block changes and rollback griefing
- Dynmap: Store map data and markers
- McMMO: Store player skills and stats
Accessing via phpMyAdmin
Some XyraPanel installations include phpMyAdmin for direct database access:- Ask your administrator for the phpMyAdmin URL
- Log in with your database username and password
- Select your database from the left sidebar
- Run queries, view tables, and manage data directly
phpMyAdmin access is optional and must be set up by your administrator. Not all installations include it.
Best Practices
Secure Remote Access
Use specific IP addresses instead of
% for the remote field when possible. Only allow your server’s IP.Regular Backups
Back up your database regularly using mysqldump or your host’s backup tools. Server backups don’t include database data.
Strong Passwords
XyraPanel generates strong random passwords. Never change them to simple passwords.
One Database per Purpose
Create separate databases for different plugins or purposes for better organization and security.
Save Credentials
Store database passwords in a secure password manager. You can’t retrieve them later, only rotate them.
Clean Up Unused
Delete databases you’re no longer using to stay within your limit and reduce security exposure.
Troubleshooting
Can't create database
Can't create database
- Check if you’ve reached your database limit (shown in error message)
- Verify a database host is configured (look for warning banner)
- Ensure you have
server.database.createpermission - Ask administrator to check database host status
Connection refused
Connection refused
- Verify the host and port are correct
- Check the remote access setting allows your IP
- Ensure your server has network access to the database host
- Try changing remote access to
%temporarily to test
Access denied
Access denied
- Verify you’re using the correct username (with prefix)
- Check password is correct (case-sensitive)
- If unsure, rotate the password to get a new one
- Ensure database status is “Ready” not “Revoking”
Lost database password
Lost database password
- You cannot retrieve the original password
- Use Rotate Password to generate a new password
- Update all applications with the new password
API Reference
List Databases
Response Example
Response Example
hostAvailable field indicates whether a database host is configured.Permissions
Database management requires specific permissions:- View databases:
server.database.read - Create databases:
server.database.create - Rotate passwords:
server.database.update - Delete databases:
server.database.delete
Next Steps
Backups
Server backups don’t include database data. Learn about exporting database backups.
Schedules
Automate database maintenance tasks with scheduled commands.