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

Install error (poorly) #95

Closed
zzz6519003 opened this issue Jan 3, 2017 · 4 comments
Closed

Install error (poorly) #95

zzz6519003 opened this issue Jan 3, 2017 · 4 comments

Comments

@zzz6519003
Copy link

➜  elixir-china git:(master) mix ecto.create Repo
** (Mix) The database for ElixirChina.Repo couldn't be created: tcp connect: connection refused - :econnrefused

14:06:16.151 [error] GenServer #PID<0.179.0> terminating
** (Postgrex.Error) tcp connect: connection refused - :econnrefused
    (db_connection) lib/db_connection/connection.ex:148: DBConnection.Connection.connect/2
    (connection) lib/connection.ex:622: Connection.enter_connect/5
    (stdlib) proc_lib.erl:240: :proc_lib.init_p_do_apply/3
Last message: nil
State: Postgrex.Protocol

I'm not sure if i started postgres correctly.

@tony612
Copy link
Collaborator

tony612 commented Jan 3, 2017

I guess it's because Postgres. Could you check the config to ensure you can connect to Postgres directly with the same config?

@zzz6519003
Copy link
Author

It's because of Postgres, I have such error

[error] Postgrex.Protocol (#PID<0.194.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect (localhost:5432): connection refused - :econnrefused

I have postgres installed by brew install postg***

I start postgres by brew services start postgresql

Is the default username & password the same as in the config file "postgres"?

@tony612
Copy link
Collaborator

tony612 commented Jan 17, 2017

@zzz6519003 I don't know wha't your username & password, but they have to be same with the real ones of PostgreSQL.

@tony612 tony612 closed this as completed Mar 28, 2017
@zzz6519003
Copy link
Author

zzz6519003 commented Mar 29, 2017 via email

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

2 participants