我使用的是 Ubuntu 18.04.2 LTS。
我已经安装了 PostgreSQL 10.8,为了与 elixir 和 phoenix 框架配合使用,我之前在 postgresql 中创建了新密码。
$ sudo -i -u postgres psql
postgres=# \password
Enter new password:12345
Enter it again: 12345
postgres=#\q
但是当我运行我的凤凰时,我遇到了这样的问题:
04:28:07.850 [error] GenServer #PID<0.217.0> terminating
** (Postgrex.Error) FATAL 28P01 (invalid_password) password authentication failed for user "postgres"
(db_connection) lib/db_connection/connection.ex:84: 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
Last message: nil
** (Mix) The database for Lat7.Repo couldn't be created: killed