简体   繁体   English

PG :: ConnectionBad fe_sendauth:未提供密码

[英]PG::ConnectionBad fe_sendauth: no password supplied

Disclaimer: I'm very new to programming in general, so please excuse my sizeable ignorance. 免责声明:一般来说,我是编程新手,所以请原谅我的无知。 I'm trying to run an application I've written in rails, but when I do, I get the error "fe_sendauth: no password supplied". 我正在尝试运行用Rails编写的应用程序,但是当我这样做时,出现错误“ fe_sendauth:未提供密码”。
Here's my database.yml, I have a feeling it's something in here. 这是我的database.yml,我觉得这里有些东西。

default: &default
    adapter: postgresql
    pool: 5
    timeout: 5000

development:
  <<: *default
    database: url-shortener_development

test:
  <<: *default
  database: url-shortener_test

production:
  <<: *default
  database: url-shortener_production
  username:
  password:

Change this, 改变这个

local   all             all                                     trust

to, 至,

local   all             all                                     md5

and create a super_user in PostgreSQL with username and password , and add that username and password to your database.yml file 并在PostgreSQL中使用usernamepassword创建一个super_user,并将该usernamepassword添加到您的database.yml文件中

Please do some changes in database.yml 请在database.yml中进行一些更改

development: 发展:

  adapter: postgresql
  encoding: unicode
  database: database-name
  pool: 5
  username: ####  your pg username
  password: ####  your pg password

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 PG::ConnectionBad: fe_sendauth: 未提供密码 - PG::ConnectionBad: fe_sendauth: no password supplied 耙终止:PG :: ConnectionBad:fe_sendauth:未提供密码 - rake aborted:PG::ConnectionBad: fe_sendauth: no password supplied 修复方法: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) 耙子流产了! PG :: ConnectionBad:fe_sendauth:没有提供密码 - rake aborted! PG::ConnectionBad: fe_sendauth: no password supplied 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 fe_sendauth:未提供密码 (PG::ConnectionBad) Docker 容器 - fe_sendauth: no password supplied (PG::ConnectionBad) Docker container pg_restore后,报错; PG::ConnectionBad fe_sendauth:未提供密码 - After pg_restore, an error; PG::ConnectionBad fe_sendauth: no password supplied
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM