Skip to content

Database errors with mix ecto.create or mix phoenix.server #53

@Jbarget

Description

@Jbarget

Postgres server not running

If you run mix ecto.create and see this:

screen shot 2017-03-05 at 18 11 40

or if you run mix phoenix.server and see this:

screen shot 2017-03-05 at 18 11 23

then it means your postgres server isn't running. You can fix this by running postgres -D /usr/local/var/postgres/

Invalid username and password

If you see an error like this:

screen shot 2017-03-05 at 17 45 52

it is likely that the username and password towards the bottom of your config/dev.exs dont match your local machine's postgres username and password.

If you know your postgress username and password then you'll need to change the values for those fields in config/dev.exs. If you don't know your username and password for postgres you will need to reset them. Look here for details

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions