2013-01-25 36 views
0

我試圖使用pg_dump的工具,指定here創建轉儲文件創建轉儲文件,但我不斷收到這樣的結果:使用pg_dump的工具

$ PGPASSWORD=mypassword pg_dump -Fc --no-acl --no-owner -h localhost -U myuser app_db > app_db.dump 
    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? 

我使用OSX獅子的反彈排序時間,仍然不知道如何打開或關閉端口,所以,如果這是問題,請告訴我如何打開它,如果問題是其他事情,請告訴我它是什麼(以及如何解決它)

謝謝

+0

顯然你的Postgres服務器沒有運行。 –

回答

1

您需要安裝postgresql並運行