我正在尝试使用此处指定的 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 Lion 进行集会排序时间,但仍然不知道如何打开或关闭端口,所以,如果这是问题,请告诉我如何打开它,如果问题是其他问题,请告诉我它是什么(以及如何解决它)
谢谢