は、私は私のrails s
を終了し、すぐにそれを再起動するために行って、突然のすべては、私はこの奇妙なエラーを取得しています:PG :: ConnectionBadエラー
2016-11-11 18:59:59 -0500: Rack app error handling request { GET /profiles }
#<PG::ConnectionBad: could not connect to server: Connection refused
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
>
私はいくつかの研究をしましたが、何も適切に私を助けていません。
/usr/local/var/postgres/
フォルダー内の.pid
ファイルを探しましたが、いくつかの回答は私が削除を提案したが、私のフォルダーはそれを持っていないと考えました。
私はserver.log
のチェックについて何かを見ましたが、私はそのフォルダーにもそれを持っていませんでした。
は最終的に私は私が正常に実行された、このコマンドに出くわし:
$ pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
server starting
しかし、私の問題を解決しないこと。それは私のためにserver.log
ファイルを作成することです。
LOG: skipping missing configuration file "/usr/local/var/postgres/postgresql.auto.conf"
FATAL: database files are incompatible with server
DETAIL: The data directory was initialized by PostgreSQL version 9.3, which is not compatible with this version 9.4.4.
私はMacOSのシエラにHerokuのからPostgresのアプリケーションを実行しています。ファイルは次のような内容を持っていることを
。
これを引き起こしている可能性があり、修正するにはどうすればよいですか?