All systems operational
Cloudphere
← Documentation

Databases

PostgreSQL, MySQL and Redis, each in its own container on your private network, with backups, restore, imports and health checks built in.

Connect your app

Reference the database from your app's environment variables instead of copying passwords. The values update themselves if credentials change:

DATABASE_URL=${{Shop Database.DATABASE_URL}}
DB_HOST=${{Shop Database.DB_HOST}}
DB_PASSWORD=${{Shop Database.DB_PASSWORD}}

Your app reaches the database over the private network. The database's Connections page lists everything available for other tools.

Backups

How often
Every 24 hours on every plan. Business can choose every 12 hours; Scale every 12 or 6 hours.
How long
Kept for up to 90 days. You choose the retention in the database's backup settings.
Download
Any backup, from Backups: a .dump for PostgreSQL, .sql for MySQL.
Backup now
Take one before a risky change, in addition to the schedule.

Restore a backup

On Backups, choose Restore on a backup and type the database's name to confirm. A safety copy of the current data is taken first. The restore runs in the background, and your app's connections are dropped briefly while the restored data is switched in. If anything fails, your data is put back automatically.

Import an existing database

Moving from another host? On Backups, choose Import and upload a PostgreSQL .dump or .sql, or a MySQL .sql file, up to 64 MB. The import is checked before it replaces anything, and the previous data is kept until it succeeds.

For larger databases, contact us and we'll move it for you.

Health checks and alerts

Every database is checked every minute. If it fails for three minutes in a row it is marked down, and recovery is recorded when it answers again. Its Monitoring page shows the status, response time and recent incidents. Owners and admins can switch on Email alerts there to be emailed when it goes down and when it recovers.

Query and browse

Plan limits

Starter includes 1 database, Business 2 and Scale 3. A Redis instance counts as a database.