9
で失敗し、私は私がすくいデシベルでしたMacOSXのライオン、ルビー1.9.2、3.1.2をRailsとpostgresのPostgresのすくいデシベル:postgresのを使用して私のアプリに移行:移行は、アクセス拒否エラー
9.0.4を使用しています。アクセス拒否エラーで失敗しました。
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:migrate
rake aborted!
could not connect to server: Permission denied
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
私はサーバーが稼働しているかどうかを確認していて、正常に動作しています。私は新しいPGのユーザーを作成している間
psql -Umyuser myapp_development
psql -Umyuser myapp_test
を使用して、私のデシベルに正常に接続でき、それはパスワードの入力を私に尋ねたことがないので、私はどこでも、そのユーザmyuser
のパスワードを与えていません。
ここは私のdatabase.ymlファイルです。
development:
adapter: postgresql
encoding: utf8
database: myapp_development
username: pgguy
test:
adapter: postgresql
encoding: utf8
database: myapp_test
username: pgguy
production:
adapter: postgresql
encoding: utf8
database: myapp_production
レールアプリからどのように接続すればよいですか?
はそんなにありがとう!私は何時間もこれを診断しようとしてきました。 –
優秀! OS X 10.8.1でこれを解決しようとした。ありがとうございました! –