You can create your own MySQL databases for your game server, for example for plugins, mods or web interfaces. You copy credentials such as host, port and user directly from the dashboard, and phpMyAdmin lets you manage your database conveniently in the browser.
Create a database
-
Open the dashboard
Open the dashboard of your server. -
Open databases
In the left sidebar, click Databases. -
Create a new database
Click Create Database. The Create Database dialog opens. -
Enter the database name
Enter a name for your database in the required Database Name field, e.g.plugins. The name can be at most 48 characters long. -
Set remote access
In the Remote Access field you define from which IP addresses connections to the database are allowed. The default is%– this allows connections from any IP address. -
Create
Click Create Database. The new database then appears in the table.
A prefix of the form s<number>_ is automatically added in front of your database name. For example, Test becomes s51018_Test.
Use the credentials
The table on the Databases page shows these columns for each database:
| Column | Meaning |
|---|---|
| Database Name | Name of the database with the prefix s<number>_ (e.g. s51018_Test), with the database ID below it |
| Username | User for logging in to the database (e.g. u51018_…) |
| Password | Password of the database user – hidden, click the eye icon to reveal it |
| Database Host | Address of the database server including the port, e.g. db1.cgn1.emeraldhost.de:3306 |
| Remote Access | Allowed IP addresses (e.g. %) |
| phpMyAdmin | phpMyAdmin button, opens phpMyAdmin in the browser |
Enter the credentials in the configuration of your plugin or mod. The Database Host contains host and port, separated by a colon. If your configuration expects them in separate fields, enter e.g. db1.cgn1.emeraldhost.de as the host and 3306 as the port.
Manage a database
The menu (…) at the end of a table row offers these actions:
- Copy Connection – copies the connection details of the database so you can paste them straight into your configuration.
- Rotate Password – generates a new password for the database.
- Delete – removes the database.
Rotate the password
-
Open the menu
In the row of your database, click the menu (…) and select Rotate Password. -
Confirm
A dialog points out that this generates a new password and the old password will no longer work. Confirm to generate the new password, or click Cancel to leave everything unchanged. -
Use the new password
Reveal the new password in the Password column via the eye icon and enter it everywhere the database is used.
Add database slots
3 databases are included by default. If they are not enough, you can book additional slots:
-
Start the expansion
On the Databases page, click Add database slots. The Change Resources dialog opens. -
Choose the number
In the Configuration step, use the databases slider to set the number you want. The available steps are 3, 4, 5, 10, 15 and 20 – 3 are included, further steps cost extra. At the bottom of the dialog you see the price change and the new Monthly Price. -
Review and finish
Click Next, check your selection in the Review step and complete the change.
You can find more about the Change Resources dialog in Change Resources.
Open phpMyAdmin
-
Open phpMyAdmin
In the row of your database, click the phpMyAdmin button. phpMyAdmin opens directly in the browser. -
Manage the database
In phpMyAdmin you can view and edit tables, run SQL commands and import or export data. If phpMyAdmin asks for credentials, use the Username and Password from the table.