Linking Databases to Apps
Each app in ServerPlane has a Database tab where you can associate one or more databases. Linking a database to an app is a logical association — it does not change any configuration on the server, but it helps you organize which databases belong to which apps.
Viewing Linked Databases
- Open your app's detail page and go to the Database tab.
- Any databases currently linked to the app are shown as cards with the database name, type badge (MariaDB/PostgreSQL/MongoDB), size, and user count.
Each card has two actions:
- View Details — Opens the full database detail page (Browse, Users, Query, Export/Import tabs).
- Unlink — Removes the association between the database and the app. The database itself is not deleted.
Linking an Existing Database
If you already have a database on the same server, you can link it to the app.
- In the Database tab, click Link Existing Database.
- A dropdown shows all unlinked databases on the app's server. Select one.
- Click Link Database.
Only databases on the same server as the app and not already linked to another app are shown in the dropdown. If no unlinked databases are available, you will see a message with a link to create a new one instead.
Creating a New Database for an App
You can create a database directly from the app's Database tab. The server is pre-selected to match the app's server.
- In the Database tab, click Create New Database.
- Fill out the form:
- Database Type — MariaDB, PostgreSQL, or MongoDB.
- Database Name — Name for the new database.
- Charset / Collation — Available for MariaDB and PostgreSQL. Defaults are pre-filled.
- Database User (optional) — Check Create user and fill in username and password, or click Generate.
- Click Create Database.
The new database is automatically linked to the app after creation. A progress panel shows the installation and creation steps. After completion, a summary screen displays the credentials.
Unlinking a Database
- In the Database tab, click Unlink on the database card.
- Confirm the dialog.
Unlinking removes the association only. The database, its data, and its users remain on the server. You can re-link it later or link it to a different app.
Notes
- An app can have multiple linked databases (e.g., a MariaDB for the main data and a MongoDB for analytics).
- To delete a database entirely, navigate to it from the Databases section in the sidebar and use the Danger Zone tab.