> [Mahesh-Ss-Computer:~] ampleuser% createdb test
> 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"?
> createdb: database creation failed
I am not sure about mac, but still i suppose, you might have to add below
entry in your pg_hba.conf file to set it right:
host all all 127.0.0.1 255.255.255.255 trust
regards,
bhuvaneswaran