Theme
Create & link a database
Create a database, generate credentials, and optionally attach them to a site automatically.
Who can use this page? Site Managers and Users need a linked site they manage.
Steps
- Databases → New Database
- Choose engine: MariaDB / MySQL, PostgreSQL, or MongoDB
- Enter a database name
- Link a site that you manage
- Leave automatic environment variables enabled (recommended)
- Create
One-time credentials
The success panel shows the full connection URI / password once:
- Copy into a password manager
- Redeploy or restart the app so it picks up new env vars
- Dismissing the panel loses the secret — NitHost does not store recoverable DB user passwords for you to re-read
Auto environment keys
| Engine | Keys added (defaults) |
|---|---|
| PostgreSQL | DATABASE_URL (sensitive, runtime), DB_NAME |
| MongoDB | MONGO_URL (sensitive, runtime), DB_NAME |
If a key already exists on the site, NitHost reports a collision — rename, disable auto variables, or merge manually in Environment variables.
Permissions model
- Each database has a dedicated owner role
- Application logins get full or read-only access to that database only
- Usernames are unique cluster-wide (PostgreSQL)
Site access
Customer database management requires a link to a site you manage. If the correct site is missing from the picker, ask your Site Manager to check your assignment.