Theme
MongoDB
Document databases with GridFS for hosted applications.
Who can use this page? As for [Databases overview](/databases/overview).
Create
- Databases → New Database → MongoDB
- Name the database
- Link a site (recommended)
- Keep automatic environment variables on
NitHost always provisions an application user, generating any omitted username/password securely.
One-time connection URI
The creation success panel displays the complete URL-encoded connection URI once. Copy it before dismissing.
Defaults when linked:
| Key | Sensitivity | When |
|---|---|---|
MONGO_URL (configurable key) | Sensitive | Runtime only |
DB_NAME | Not sensitive | Runtime only |
Existing site variables are never overwritten — resolve collisions or turn off auto variables and paste manually.
Why credentials are one-time
NitHost intentionally does not retain database-user passwords for re-display. If the password was not saved in your authorized application configuration, change the database user password and update the application connection.
Backups
Site backups include linked MongoDB databases (including GridFS collections) via compressed mongodump archives. Restorable from the Databases page.
If a restored application cannot connect, check its connection settings and contact NitHost support before changing or recreating its database user.