gpt4 book ai didi

Postgresql - postgres@localhost 失败 fatal error : role does not exist

转载 作者:行者123 更新时间:2023-11-29 12:03:54 25 4
gpt4 key购买 nike

我刚刚安装了 postgres(使用 brew)并使用 pg_ctl -D/usr/local/var/postgres -l logfile start 启动它

我现在尝试在终端中连接到它,但得到以下信息:

连接到 PostgreSQL - postgres@localhost 失败致命:角色“我”不存在

问题可能是我先安装了 postgres.app,然后没有让它正常工作,然后将其删除。

最佳答案

您没有显示您输入的内容以及您输入的用户身份,但是根据错误消息我会说您应该将 -U postgres 添加到 psql调用。

关于Postgresql - postgres@localhost 失败 fatal error : role does not exist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38399589/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com