我在尝试创建数据库时遇到错误.我安装了postgres,我已经成功完成了一些测试项目.而且,我没有看到这个错误.任何帮助都会很棒:
原文链接:https://www.f2er.com/postgresql/191681.html错误:
~/Desktop/elixir/restore $mix ecto.create ** (Mix) The database for Restore.Repo couldn't be created: tcp connect: connection refused - :econnrefused 21:52:23.978 [error] GenServer #PID<0.150.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:623: Connection.enter_connect/5 (stdlib) proc_lib.erl:240: :proc_lib.init_p_do_apply/3 Last message: nil State: Postgrex.Protocol