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

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

提交回复
热议问题