I tried creating a user called postgres. I reinstalled postgres through brew
. I'm able to run it with
postgres -D /usr/local/var/postgres
when I run mix ecto.create
, I still get the error:
~/code/blog_phoenix:.mix ecto.create
** (Mix) The database for BlogPhoenix.Repo couldn't be created, reason given: psql: FATAL: role "postgres" does not exist.
~/code/blog_phoenix:.