PG::ConnectionBad: fe_sendauth: no password supplied

后端 未结 6 866
再見小時候
再見小時候 2020-12-04 18:59

When I attempt to run \"rake test\" on a local postgres database, it throws the above exception.

Here is my pg_hba.conf file: # Database administrative login by

6条回答
  •  北海茫月
    2020-12-04 19:42

    I had this problem, solved by a coworker: You need to set a local user and password in postgres

    createuser --interactive --pwprompt
    

    It will ask you for the name of the role (the user) and the password you want to have.

    Then you have to add this username and password to your database.yml file

提交回复
热议问题