1. Home
  2. Docs
  3. Databases
Guide

Databases

A PostgreSQL 16, MariaDB 10.11 or Valkey 7.2 (Redis-compatible) database that we set up, keep updated and back up every night. Nobody can connect until you say who may. $30, $60 or $120 a month, or by the hour.

1Add one

In the console, choose Databases on the Overview, then Add a database. Pick the engine, the size and the location. It's ready in a few minutes.

  • 1 vCPU, 2 GB memory, 30 GB disk: $30 a month
  • 2 vCPU, 4 GB memory, 60 GB disk: $60 a month
  • 4 vCPU, 8 GB memory, 140 GB disk: $120 a month

2Choose who may connect

Under Who may connect, add your own addresses or ranges, and tick your servers. Everyone else is turned away. A server you tick is let in on its own addresses, and stays let in if they change.

Put the database at the same location as your servers for the quickest answers.

3Connect

The database page shows the host, port, the admin user and the first database, defaultdb. Show password puts the admin password into the connection string, ready to copy.

Connections are always encrypted. To check the server too, download the CA certificate and give it to your client: sslmode=verify-full with sslrootcert for PostgreSQL, --ssl-ca with --ssl-verify-server-cert for MariaDB, --tls --cacert for Valkey (its address starts rediss://).

4Databases and users

Add databases and users from the page. A new user gets full rights in the databases you pick and nothing else; its password is shown once. For finer rights, grant them with SQL as admin, which can do everything inside the database server.

Valkey has no named databases: keep things apart with key prefixes, or the numbered databases 0 to 15. Its users reach every key and every command except the server's own settings. When its memory is full, writes are refused; nothing is thrown away.

5Backups

Every night, an hour before the maintenance hour, each database is backed up; the 7 newest backups are kept. Back up now takes one when you need it, up to 6 a day. Restore puts a backup's databases back as they were; databases you made since are left alone.

We also back up the whole machine every night, on separate storage.

6Updates and size

Security updates install in the maintenance hour you choose, and the database may restart for a minute then. Bigger size moves it to more memory, CPU and disk; it restarts once, and its settings follow the new size by themselves.

7API and AI assistants

Everything here is also in the API (/databases), the eh databases command and the AI assistant tools.