I found about this command here: https://stackoverflow.com/questions/17633422/psql-fatal-database-user-does-not-exist/17936043#comment26736790_17633422 None of the examples work unless you create the database first