Skip to main content
Pxxl runs managed databases next to your apps. Create one, copy its URL into your project, and redeploy.

Engines

PostgreSQL and MySQL are on the Free plan. The other engines depend on your plan.

Create a database

1

Open Database

In the dashboard, open Database and choose New Database.
2

Pick an engine and name

Use a name that says what it holds, such as orders-production.
3

Turn on backups (optional)

Paid plans can take daily encrypted backups. See Backups.
4

Wait until it's running

Connect your app once the status shows healthy or running.
From the CLI:
See CLI commands for the options.

Connect your app

Open the database and select Connection. Copy the Database URL, or the host, port, user, and password. Add it to your project as an environment variable, then redeploy:
When you create a database from inside a project, turn on Add DATABASE_URL and Pxxl adds the variable for you.
Don’t use localhost. Inside your app’s container, localhost is the container itself. Use the host Pxxl shows you.
Running apps don’t pick up new variables until they restart. Redeploy after you add or change DATABASE_URL.

Database page tabs

Stop, restart, delete

Open Settings. Stop pauses the database and your app’s connections fail until you start it again. Delete is permanent. Take a backup first.

Next steps