Skip to main content
1

Go to the Game Panel

Log in to your XA Hosting Game Panel, select your server.
2

Create a Database

Once you’ve selected your server, navigate to the sidebar and click Databases. Then, click Create Database to set up a new database for your server. Make sure to give your database a name.
3

Configure Your Plugin

Open your plugin’s configuration file (usually database.yml) and enter the database details:
  • Host/IP: artemis.xahosting.com
    Use this if your server is located in the US.
  • Database Name: Your database name
  • Username: Your database username
  • Password: Your database password
  • Port: 3306 (default MySQL port)
4

Test the Connection

Restart your server and check the plugin logs to ensure it successfully connects to the database. If there are connection errors, double-check the credentials and the host for your region.
5

Use the Database in Your Plugin

Once connected, your plugin can store and retrieve data, such as player stats, inventory, or custom configurations. Verify by performing actions in-game that trigger database updates.
You’ve learned how to add a database using XA Hosting Game Panel!