PG::ConnectionBad FATAL: role “Myname” does not exist

后端 未结 7 1373
旧巷少年郎
旧巷少年郎 2020-12-13 10:03

I am trying to use PostgreSQL so that I can deploy to Heroku. However I cannot run localhost anymore why? I get the following message:

PG::ConnectionBad
FATA         


        
7条回答
  •  粉色の甜心
    2020-12-13 10:22

    The error is "role "Myname" does not exist",

    create the user "Myname" for Postgresql

    sudo -u postgres createuser --superuser Myname

    it will solve this issue.

提交回复
热议问题