某些背景:我正在尝试在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.
也:
ALTER USER kali WITH PASSWORD 'xxxxxxxx';
设置了它的密码psql -U kali -d jerarch
可以正常工作,并且只能使用我之前设置的密码(意味着ALTER USER
有效)。PG_SUPERUSER
和PG_SUPERUSER_PW
根据需要定义。 我真的不知道该怎么办。谢谢
所以在发布问题之前,我发现问题是重复的postgresql
环境:一个正在Windows上运行,另一个正在虚拟Ubuntu上运行。在psql
中使用Ubuntu cli解决了Ubuntu postgres,而出于某些原因,在Ubuntu上djnago
解决了Window的postgres。 kali
用户也在那里被手动配置,但是使用了另一个密码。