PostgreSQL / MySQL

Relational databases with durable storage.

Insert screenshot of Marketplace โ†’ Databases here

Prereqs

  • Premium/Pro volumes; open ports only to trusted sources

PostgreSQL โ–ถ๏ธ

sudo apt -y install postgresql
sudo -u postgres psql -c "CREATE USER app WITH PASSWORD 'StrongPass!';"
sudo -u postgres createdb -O app appdb

Tune shared_buffers, work_mem, and enable regular backups.

MySQL โ–ถ๏ธ

sudo apt -y install mysql-server
sudo mysql_secure_installation
sudo mysql -e "CREATE DATABASE appdb; CREATE USER 'app'@'%' IDENTIFIED BY 'StrongPass!'; GRANT ALL ON appdb.* TO 'app'@'%'; FLUSH PRIVILEGES;"

Last updated

Was this helpful?