Reputation: 1336
I installed Postgres.app, and when I open it, the menu bar icon says "Running on Port 5432". But when I click on the "Open psql" menu option, I see the following message:
/Applications/Postgres.app/Contents/MacOS/bin/psql ; exit;
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
logout
[Process completed]
Any ideas what might be up?
Upvotes: 0
Views: 2106
Reputation: 32758
According to:
http://postgresapp.com/documentation
Try connecting on the command line with:
$ psql -h localhost
Upvotes: 1
Reputation: 80101
It is most likely in a different location, there are a few ways to fix this.
-h localhost
)netstat -ln | grep PGSQL
)unix_socket_directory
variable.Upvotes: 2