Databases
Create a database
Provision a managed database in seconds and connect it to your app.
From the dashboard
- Open Databases in your dashboard and click New database.
- Pick an engine and a version — see supported engines.
- Click Create. The instance is provisioned and a connection string is generated within seconds.
Connecting it to a project
Attach the database to a project from either side — the project's settings or the database's settings. Once attached:
- The connection string is injected into the project's environment as an environment variable (its exact name is shown in the database's Connection tab)
- The app reaches it over the private network — no code changes needed beyond reading that environment variable
Naming and credentials
DockHosting generates a random username and password for the default database user. You can create additional databases and users within the instance — see Manage.
Next steps
- Connect from your own computer for local development or a BI tool
- Set up automatic backups — on by default, but worth knowing how to take a manual one
- Restrict access with a firewall if you turn on public access