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

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

    You should create a username and password for your Postgresql

    Try creating a user with password in psql

    CREATE USER Myname WITH PASSWORD 'your_password';
    

    And your should add those to your database.yml as

    username: Myname
    password: your_password
    
    0 讨论(0)
提交回复
热议问题