【发布时间】:2020-02-29 09:12:04
【问题描述】:
一些背景:
我正在尝试在 Windows 上安装 arches project。在遇到一些问题后,我看到建议在 Linux 上运行它,所以现在我在 Windows 的 Ubuntu 终端上运行。
至于错误:
第一步是运行python manage.py setup_db 命令。它失败了:
FATAL: password authentication failed for user "kali"
Error connecting to db with these settings: dbname=jerarch user=kali host=localhost port=5432
Have you created the database yet? The quickest way to do so is to supply Postgres superuser credentials in the PG_SUPERUSER and PG_SUPERUSER_PW settings, and then re-run this same command.
还有:
- 用户“kali”存在,我使用
ALTER USER kali WITH PASSWORD 'xxxxxxxx';设置了它的密码 -
psql -U kali -d jerarch可以正常工作,并且只能使用我之前设置的密码(意味着ALTER USER有效)。 -
PG_SUPERUSER和PG_SUPERUSER_PW根据需要定义。
我真的不知道还能做什么。谢谢
【问题讨论】:
标签: django postgresql python-3.6