【问题标题】:postgres user doesn't work after Migration Assistant to new mac将助手迁移到新 Mac 后,postgres 用户不起作用
【发布时间】:2018-11-23 07:20:24
【问题描述】:

我今天买了一个新的 mac 并运行了迁移助手,它对大多数事情都非常有用,但是我现在似乎无法进入 psql。

postgres 与 homebrew 一起安装并且服务启动正常,但是现在每当我运行“psql postgres”时,我都会收到以下错误:

psql: FATAL:  role "Jamie" does not exist

Jamie 是我 Mac 上用户的实际帐户名。这一切都在我的旧 Mac 上正常工作/运行...

【问题讨论】:

  • 另外,如果我尝试手动创建 postgres 用户,我会收到类似的错误:createuser: could not connect to database postgres: FATAL: role "Jamie" does not exist
  • 对于“psql -U postgres”,我得到“psql:FATAL:角色“postgres”不存在”

标签: macos postgresql psql


【解决方案1】:

嗯,本地帐户名称与我的旧 mac 配置显示的不同。痛苦。更改为使用不同的用户连接到 psql,它工作正常。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-07-24
    • 2021-09-02
    • 2015-01-10
    • 1970-01-01
    • 2022-09-07
    • 2016-05-14
    • 2013-11-26
    • 2012-10-04
    相关资源
    最近更新 更多