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/DATABASEYou can connect from a project on Dadisiweb or from your own computer with any client (psql, mysql, DBeaver, TablePlus…).
Manage#
| Action | What it does |
|---|---|
| Stop / Start | Stops or starts the database. Data is kept while it is stopped. A stopped database refuses connections. |
| Backup now | Creates a backup you can restore later. |
| Restore | Replaces the database with a backup. A safety backup of the current state is made first. |
| Change password / name | Update credentials. Update your apps' environment variables afterwards. |
| Delete | Removes 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.