Postgresql macros cannot bind problem

I am trying to run the createuser command on a newly installed instance of a postgresql90 server with macports and Im getting this error.

createuser: failed to connect to the postgres database: failed to connect to the server: permission denied The server works locally and accepts connections in the Unix juice of the domain "/var/pgsql_socket/.s.PGSQL.5432"?

However, if I run psql, it connects to the database without problems, what could be the problem?

+5
source share
2 answers

This seems like a problem with Lion because it (or maybe xcode) comes with a version of postgreSQL installed on it.

:

Postgresql OSX 10.7 Lion

+2

, DATABASES.HOST /tmp/ ( - OS X M-Lion postgresql /tmp/).

0

All Articles