[英]rake aborted! PG::ConnectionBad: fe_sendauth: no password supplied
I can't do rake db:migrate. 我不能做rake db:migrate。
I've tried to change in pg_hba.conf
md5 -> trust, but it's not helped me, because I get new error with trust: 我试图改变
pg_hba.conf
md5 - > trust,但它没有帮助我,因为我得到了信任的新错误:
rake aborted!
PG::ConnectionBad: ▒▒▒▒▒: ▒▒▒▒ "roman" ▒▒ ▒▒▒▒▒▒▒▒▒▒
I don't know what it means. 我不知道这意味着什么。 I try to create simple app on ruby on rails with postgresql server (pgAdmin4, postgresql11, latest version of rails and ruby) on windows 10.
我尝试在windows 10上使用postgresql服务器(pgAdmin4,postgresql11,rails和ruby的最新版本)在ruby上创建简单的应用程序。
My database.yml 我的database.yml
default: &default
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
username: simpleblog
password: <%= ENV['SIMPLEBLOG_DATABASE_PASSWORD'] %>
development:
<<: *default
database: simpleblog_development
test:
<<: *default
database: simpleblog_test
production:
<<: *default
database: simpleblog_production
My pg_hba.conf 我的pg_hba.conf
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
host replication all 127.0.0.1/32 md5
host replication all ::1/128 md5
So i get... first 所以我先......
rake aborted!
PG::ConnectionBad: fe_sendauth: no password supplied
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
then when I changed md5 -> trust 然后当我改变md5 - > trust
rake aborted!
PG::ConnectionBad: ▒▒▒▒▒: ▒▒▒▒ "roman" ▒▒ ▒▒▒▒▒▒▒▒▒▒
检查application.yml中的“SIMPLEBLOG_DATABASE_PASSWORD = something”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.