Knowledge base
Discord Bot Hosting

Creating and using a database

Last updated 8/1/2026 by Alfie Web Solutions

If your bot needs to store data persistently, most eggs support attaching a MySQL database directly from the panel.

Creating a database

  1. Log in to the panel and open your server.
  2. Go to the Databases tab.
  3. Click New Database.
  4. Give it a name and click Create.

The panel generates the host, database name, username, and password automatically - you don't set these yourself.

Finding your connection details

After creating it, the database is listed with:

  • Endpoint / Host - where your bot connects to.
  • Database name
  • Username
  • A View Password (or similar) button to reveal the password.

Enter these into your bot's configuration (usually a .env file or config file) wherever it asks for database connection details - exactly how depends on your bot's code, which is outside what we can help configure directly, but the connection details themselves always come from this tab.

Resetting the database password

If you need a fresh password (e.g. it was exposed somewhere), use the Rotate Password option next to the database in the Databases tab, then update your bot's configuration to match the new password and restart.

Removing a database

Select it in the Databases tab and choose Delete - this permanently removes the database and all data in it, so make sure anything important is backed up first (see the Backups guide).