database.yml을 공급하지 :fe_sendauth : 암호가
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
development:
adapter: postgresql
encoding: utf8
database: sampleapp_dev #can be anything unique
#host: localhost
#username: 7stud
#password:
#adapter: sqlite3
#database: db/development.sqlite3
pool: 5
timeout: 5000
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
adapter: postgresql
encoding: utf8
database: sampleapp_test #can be anything unique
#host: localhost
#username: 7stud
#password:
#adapter: sqlite3
#database: db/test.sqlite3
pool: 5
timeout: 5000
production:
adapter: postgresql
database: sampleapp_prod #can be anything unique
#host: localhost
#username: 7stud
#password:
#adapter: sqlite3
#database: db/production.sqlite3
pool: 5
timeout: 5000
있는 pg_hba.conf : 나는 신뢰의 MD5에서 처음 세 줄의 방법을 변경,하지만 난 여전히 오류가
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 trust
# Allow replication connections from localhost, by a user with the
# replication privilege.
#local replication postgres md5
#host replication postgres 127.0.0.1/32 md5
#host replication postgres ::1/128 md5
. 난 항상 오류 얻을
~/rails_projects/sample_app4_0$ bundle exec rake db:create:all
: 내가 무엇을 할 내가 database.yml을에 시도 것들의 조합
와 상관없이
fe_sendauth: no password supplied
나는 것들을 설치를 얻을이 튜토리얼을 따라 :
https://pragtob.wordpress.com/2012/09/12/setting-up-postgresql-for-ruby-on-rails-on-linux
Mac OSX 10.6.8
PostgreSQL 9.2.4 installed via enterpriseDB installer
Install dir: /Library/PostgreSQL/9.2
,536,913,632 10
그리고 변경 한 후에 pg_hba.conf 파일을 다시로드 했습니까? – bma
@bma, 어떻게 다시로드합니까? 내가 서버에 연결할 수 있었던 유일한 방법은 9.2 디렉토리에서 pgAdmin3을 사용하는 것이다. 서버를 선택하고 마우스 오른쪽 버튼을 클릭 한 다음 연결을 선택합니다. 따라서 conf 파일을 다시로드하려고 시도하면서 pgAdmin3의 서버에서 연결을 끊었다가 다시 연결되었습니다. – 7stud
수퍼 유저로'select pg_reload_conf()'를 실행하거나 pgadmin에서 db 이름을 마우스 오른쪽 버튼으로 클릭 한 다음 "Reload Configuration"을 클릭하면됩니다 (필자는 그렇게 생각합니다. pgadmin을 사용하지 않습니다) – bma