Browse all topics

Data

Databases

Create PostgreSQL, MySQL or MariaDB databases, connect to them, back them up and restore them.

Create a database from New project → Database and choose PostgreSQL, MySQL or MariaDB. It is ready in a short time, and its data is kept permanently.

Connect#

Open the database project. The page shows the host, port, database name, username and password. Use them in your app's environment variables.

postgresql://USER:PASSWORD@HOST:PORT/DATABASE
mysql://USER:PASSWORD@HOST:PORT/DATABASE

You can connect from a project on Dadisiweb or from your own computer with any client (psql, mysql, DBeaver, TablePlus…).

Manage#

ActionWhat it does
Stop / StartStops or starts the database. Data is kept while it is stopped. A stopped database refuses connections.
Backup nowCreates a backup you can restore later.
RestoreReplaces the database with a backup. A safety backup of the current state is made first.
Change password / nameUpdate credentials. Update your apps' environment variables afterwards.
DeleteRemoves the database. A final backup is kept for 14 days, then deleted.

Automatic backups#

Every database is backed up every night, and the last 7 backups are kept. You can also back up manually at any time. Download important backups to your own storage.

SQL terminal#

The Terminal tab opens a SQL prompt. See Terminal.

Tips#

  • Create separate databases for separate apps.
  • Use a strong password and never put it in your repository.
  • Databases that are stopped by you stay stopped until you start them.