ServerAvatarDocs
Databases

Databases

Create databases, manage who can connect to them, add another engine, and take exports.

A database in OSS Panel is a real database on one of the engines installed on the server, plus the users allowed to sign in to it. If a user may connect from another address, the panel also opens the database port in the firewall for it. The panel creates all of this together, so an application has something to point at the moment the database exists.

Applications that need a database, such as WordPress, get one automatically when you create them. The screens here are for the databases you create yourself, and for looking after all of them afterwards.

Not on Docker servers

A server that hosts containers does not manage database engines. An application that needs a database brings its own, as a container. On such a server the screen says Databases are not managed on this server.

The Databases screen

Open Databases under Data in the sidebar. The screen shows which engines are running, every database on the server, and how big each one is.

The Databases screen with the MySQL 8.0.46 engine chip, the Health, Root password and Add engine buttons, a search box, the Create database button and a table of two databases

The card at the top is the engine row:

  • Each running engine is a chip with a green dot and its version. Hover over the chip to see the full version string.
  • Health opens Database health.
  • Root password appears while MySQL or MariaDB is running. See Database engines.
  • Add engine (or, when only one engine can be added, a button named after it, such as Install MongoDB) installs another engine. See Database engines.
  • The summary reads, for example, 3 databases · 656 KB. The total size is shown only when the table below holds every database, so a partial sum never looks like a total.

If an engine is installed but not answering, it shows Not reachable with a Check services link to Services.

The table

ColumnWhat it tells you
NameThe database name, as the engine sees it. Click it to open the database.
EngineWhich engine it lives on.
ApplicationThe application it is linked to, or Not linked.
SizeThe size on disk.
UsersHow many database users can sign in to it. A grey 0 means nobody can connect.
Last exportWhen the newest finished export that is still on the server was made, or Never.

Click Name, Engine, Size or Users to sort. Search databases… filters by name as you type. The refresh button next to Create database reloads the list.

The row menu

The ⋯ menu at the end of a row, for roles with Manage access, holds:

  • Open in phpMyAdmin and Open in Adminer. Each signs you in as one of the database's users and opens a new browser tab. If the client is not installed on this server, the entry reads Install phpMyAdmin or Install Adminer and opens the create-application form with that application already chosen. phpMyAdmin works with MySQL and MariaDB. Adminer also works with PostgreSQL. Neither opens MongoDB. Both need the database to have at least one user.
  • Delete. See Manage a database.

The row menu open on acme_crm with Install phpMyAdmin, Install Adminer and Delete

Databases that are not in a backup

Backups run per application, so a database that is not linked to an application is in no backup. The panel says so in a banner above the list:

The Databases screen with a banner reading 1 database is not linked to an application and a Show them button, above a table in which acme_reports shows Not linked

Click Show them to filter the list to those databases. The banner then reads Showing only databases not linked to an application, with Show all to undo it. Fix one of them in either of two ways:

  • Click Not linked in its row, or Attach to an application on its page, and choose the application. See Manage a database.
  • Set up a backup for the database on its own, from the Backups tab on its page. See Backups.

Databases created outside the panel

If the engine holds databases the panel does not know about, such as ones you created over SSH, a banner reads 3 databases on this server aren't in the panel yet.

  1. Click Review.
  2. Tick the databases to add, or click Select all.
  3. Click Add to panel.

The dialog says Nothing is changed or deleted. The panel just starts managing them. Added databases are not linked to an application, so no backup includes them until you link them. The banner is only shown to roles with Manage access.

When there is no engine

If no engine is running, the page shows a list of engine cards instead of a list of databases. See Database engines.

Who can do this

  • Database → View shows the list, the engine row, a database's details, its tables, exports and health. Passwords are hidden from this role (Hidden — your role can't manage databases.).
  • Database → Manage is needed to create or delete a database, add an engine, set the root password, manage users, export, import, open phpMyAdmin or Adminer, and stop a running query. A role without it does not see these buttons.

Common errors

  • We couldn't load your databases. The panel could not read the list. Reload the page. If it keeps failing, check Services for the engine.
  • No database engine installed. Nothing is installed yet. Install one from Database engines.
  • You don't have access to … with Your role doesn't include permission to view this. Ask an administrator to grant it. Your role has no Database → View access. See Roles.

What's here

On this page