Search Postgresql Archives

Re: Cannot reach pg server using -h localhost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> So that's all good. If I use -h it doesn't work:
> 
> psql -Umyuser -d mydb -h localhost

> listen_addresses = 'localhost'     # also '*', '127.0.0.1', '::1'


Use netstat to look what IP postgres actually binds to.
OS X uses the BSD syntax:

netstat -an

For example on my Mac (not homebrew):

tcp4       0      0  127.0.0.1.5432         *.*
LISTEN
tcp6       0      0  ::1.5432               *.*
LISTEN

Bye,
Chris.




-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux