Rails and PostgreSQL: Role postgres does not exist

前端 未结 13 2168
一整个雨季
一整个雨季 2020-12-07 07:51

I have installed PostgreSQL on my Mac OS Lion, and am working on a rails app. I use RVM to keep everything separate from my other Rails apps.

For some reason when I

13条回答
  •  隐瞒了意图╮
    2020-12-07 08:44

    You might be able to workaround this by running initdb -U postgres -D /path/to/data or running it as user postgres, since it defaults to the current user. GL!

提交回复
热议问题