Postgresql - postgres @ localhost失败致命:角色不存在

时间:2016-07-15 15:13:26

标签: postgresql homebrew

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

启动了它

我现在尝试在终端中连接到它,但获得以下内容:

与PostgreSQL的连接 - postgres @ localhost失败 致命:角色"我"不存在

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

1 个答案:

答案 0 :(得分:3)

您没有显示您键入的内容以及您执行此操作的用户,但是从错误消息中我会说您应该-U postgres添加psql调用。

相关问题