Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Jbarget opened this issue Mar 5, 2017 · 0 comments
Closed

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

Jbarget opened this issue Mar 5, 2017 · 0 comments

Comments

@Jbarget
Copy link
Member

Jbarget commented Mar 5, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant