首页 > 解决方案 > createuser:错误:无法连接到数据库 postgres:致命:用户密码验证失败

问题描述

我正在尝试通过此文档设置 postgres:https ://docs.saleor.io/docs/getting-started/installation-macos/

我安装了 pgadmin4 也通过自制软件。

但是,我无法执行此命令

$ createuser --superuser --pwprompt saleor

它回来说

createuser: error: could not connect to database postgres: FATAL:  password authentication failed for user "zijie"

有趣的是,我能够登录 psql

Password for user postgres: 
psql (12.1)
Type "help" for help.

有人可以给我建议吗?非常感谢。

标签: sqlpostgresqlsaleor

解决方案


推荐阅读