0
我已經通過brew安裝了postgres。但是,運行rake db:create
後,我得到錯誤Postgres不會創建角色
角色「posgres」不存在
我不能運行psql
爲我的用戶不存在,這是合乎邏輯的作用,但我無法登錄與-u postgres無論。 有什麼建議,如何創建postgres用戶?
我已經通過brew安裝了postgres。但是,運行rake db:create
後,我得到錯誤Postgres不會創建角色
角色「posgres」不存在
我不能運行psql
爲我的用戶不存在,這是合乎邏輯的作用,但我無法登錄與-u postgres無論。 有什麼建議,如何創建postgres用戶?
這似乎是安裝後服務沒有運行/打開。
文檔參考: https://www.postgresql.org/docs/current/static/server-start.html
然後,執行在initdb/[數據位置]
然後,你將需要須藤到postgres用戶(服務用戶)發出命令到數據庫。
你似乎有錯字! – plaes
[Rails和PostgreSQL:角色postgres不存在]的可能重複(http://stackoverflow.com/questions/7863770/rails-and-postgresql-role-postgres-does-not-exist) – plaes