Postgres No permission to create user

前端 未结 2 784
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-06 04:16

I am unable to use rails with postgres. The database wont create:

sayth@sayth-TravelMate-5740G:~/testapp2$ rake db:create:all
PG::InsufficientPrivilege: ERROR:           


        
2条回答
  •  深忆病人
    2021-02-06 04:51

    The username / password you use lack the administrator rights that are necessary for creation users and databases.

    Login as administrator and fix the permissions. If you have administrator login credentials, login and use ALTER ROLE to fix the rights on that account.

提交回复
热议问题