postgresql - Should be able to run psql without host Postgres.app -
postgres.app documentation says this, verbatim: once path correctly set up, should able run psql without host. (if not, check correct version being loaded in path doing psql) not me.
here's i'm at. without postgres.app on (no elephant anywhere):
$ psql /applications/postgres.app/contents/versions/9.3/bin/psql
this correct, , heroku says for. heroku tells me command below should work, doesn't:
$ psql -h localhost psql: not connect server: connection refused server running on host "localhost" (::1) , accepting tcp/ip connections on port 5432? not connect server: connection refused server running on host "localhost" (fe80::1) , accepting tcp/ip connections on port 5432? not connect server: connection refused server running on host "localhost" (127.0.0.1) , accepting tcp/ip connections on port 5432?
however can work when double click postgres.app , turn on.
$ psql psql (9.3.3) type "help" help. johncurry=#
the docs should work without localhost. set correctly or need change something? code right above makes me feel working properly, "should work without host" thing makes me unsure.
you're using psql
postgres.app
. it's configured to, default, connect database server postgres.app
. won't work if postgres.app
not running.
with our without -h
, must have postgres.app
running.
if want run background postgresql server, postgres.app
isn't want. install homebrew or use enterprisedb installer packages.
Comments
Post a Comment