2016-09-30 92 views
0

我已經通過brew安裝了postgres。但是,運行rake db:create後,我得到錯誤Postgres不會創建角色

角色「posgres」不存在

我不能運行psql爲我的用戶不存在,這是合乎邏輯的作用,但我無法登錄與-u postgres無論。 有什麼建議,如何創建postgres用戶?

+1

你似乎有錯字! – plaes

+1

[Rails和PostgreSQL:角色postgres不存在]的可能重複(http://stackoverflow.com/questions/7863770/rails-and-postgresql-role-postgres-does-not-exist) – plaes

回答