SwitchUp SwitchUp Ranked Best Coding Bootcamps 2025

FATAL: database "postgres" does not exist

Altcademy Team wrote on 7 February 2018

When running rails server, I get the error FATAL: database "postgres" does not exist

[SOLUTION]
Make sure you don't delete the default database postgres.
Check your databases in psql:
$ psql$ \l

To recreate database postgres in psql:
$ psql$ CREATE DATABASE postgres

Trusted by

Students and instructors from world-class organizations

Join the upcoming Cohort #111

Enroll for March 2nd, 2026