psql -U user db
\l # list databases
\c db # connect to database
\dt # list tables

mastodon

  • change user password (doesn't have one by default)
    psql -p 5432 -U mastodon mastodon_production -w
    alter user mastodon with password '<password>';
    update .env.production

setting up nagios monitoring