0

OK、問題は次のとおりです。ローカルにある DB をアップロードしたいのですが、localhost で使用しています。

PGPASSWORD=mypassword pg_dump -Fc --no-acl --no-owner -h localhost -U root app_db > app_db.dump

私はいつも得る:

pg_dump: [archiver (db)] connection to database "app_db" failed: could not connect to server: Connection refused
 Is the server running on host "localhost" and accepting
 TCP/IP connections on port 5432?
could not connect to server: Connection refused
 Is the server running on host "localhost" and accepting
 TCP/IP connections on port 5432?
could not connect to server: Connection refused
 Is the server running on host "localhost" and accepting
 TCP/IP connections on port 5432?

問題は、heroku アプリのアドレスではなく localhost を書いていることだと思います。正しいアドレスを取得する方法を教えてもらえますか?

4

1 に答える 1

0

postgresql をインストールして実行する必要があります

于 2013-01-25T13:37:41.043 に答える