简体   繁体   English

耙子流产了! PG :: ConnectionBad:fe_sendauth:没有提供密码

[英]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.

相关问题 耙终止:PG :: ConnectionBad:fe_sendauth:未提供密码 - rake aborted:PG::ConnectionBad: fe_sendauth: no password supplied Rails 每当 rake 中止时! PG::ConnectionBad: fe_sendauth: 没有提供密码 - Rails Whenever rake aborted! PG::ConnectionBad: fe_sendauth: no password supplied PG :: ConnectionBad fe_sendauth:未提供密码 - PG::ConnectionBad fe_sendauth: no password supplied PG::ConnectionBad: fe_sendauth: 未提供密码 - PG::ConnectionBad: fe_sendauth: no password supplied 耙子流产了! PG :: ConnectionBad:fe_sendauth:没有提供密码任务:TOP =&gt; db:migrate(通过使用--trace运行任务来查看完整跟踪) - rake aborted! PG::ConnectionBad: fe_sendauth: no password supplied Tasks: TOP => db:migrate (See full trace by running task with --trace) 修复方法:PG :: ConnectionBad:fe_sendauth:未提供密码 - how to fix: PG::ConnectionBad: fe_sendauth: no password supplied Rails / PostgreSQL问题:PG :: ConnectionBad:fe_sendauth:未提供密码 - Rails/PostgreSQL problem: PG::ConnectionBad: fe_sendauth: no password supplied &#39;initialize&#39;:fe_sendauth:不提供密码(PG :: ConnectionBad) - `initialize': fe_sendauth: no password supplied (PG::ConnectionBad) capistrano,rails,PG :: ConnectionBad:fe_sendauth:没有提供密码 - capistrano, rails, PG::ConnectionBad: fe_sendauth: no password supplied Rails 控制台导致 PG::ConnectionBad: fe_sendauth: 没有提供密码 - Rails Console results in PG::ConnectionBad: fe_sendauth: no password supplied
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM