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

后端 未结 7 1377
旧巷少年郎
旧巷少年郎 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:21

    Use this command to use your Postgres user:

    sudo su - postgres

    Now use this command to create a user:

    createuser -s -r 'user_name'

    Now logout.

    The error is resolved.

提交回复
热议问题