fe_sendauth: no password supplied

后端 未结 3 1720
醉酒成梦
醉酒成梦 2020-12-07 17:24

database.yml:

# SQLite version 3.x
#   gem install sqlite3
#
#   Ensure the SQLite 3 gem is defined in your Gemfile
#   gem \'sqlite3\'
development:
  adapte         


        
相关标签:
3条回答
  • 2020-12-07 17:47

    This occurs if the password for the database is not given.

    default="postgres://postgres:password@127.0.0.1:5432/DBname"

    0 讨论(0)
  • 2020-12-07 17:50

    I just put --password flag into my command and after hitting Enter it asked me for password, which I supplied.

    0 讨论(0)
  • 2020-12-07 17:54

    After making changes to the pg_hba.conf or postgresql.conf files, the cluster needs to be reloaded to pick up the changes.

    From the command line: pg_ctl reload

    From within a db (as superuser): select pg_reload_conf();

    From PGAdmin: right-click db name, select "Reload Configuration"

    Note: the reload is not sufficient for changes like enabling archiving, changing shared_buffers, etc -- those require a cluster restart.

    0 讨论(0)
提交回复
热议问题