我正在尝试遵循GraphQL 教程。
我使用asdf来安装erlang、elixir和postgres。我用的是macbook。
当我进入运行步骤时mix ecto.setup
,出现以下错误:
20:44:47.318 [错误] GenServer #PID<0.1605.0> 终止 ** (DBConnection.ConnectionError) tcp connect (localhost:5432): connection denied - :econnrefused (db_connection) lib/db_connection/connection.ex:163: DBConnection.Connection.connect/2 (connection) lib/connection.ex:622: Connection.enter_connect/5 (stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3 最后一条消息:nil 状态:Postgrex.Protocol ** (混合)无法创建 Community.Repo 的数据库:引发异常:** (DBConnection.ConnectionError) tcp connect (localhost:5432): connection denied - :econnrefused (db_connection) lib/db_connection/connection.ex: 163:DBConnection.Connection.connect/2(连接)lib/connection.ex:622:Connection.enter_connect/5(stdlib)proc_lib.erl:249::proc_lib。init_p_do_apply/3
它可能是什么?