<div dir="ltr">Hello,<br>what about your postgresql settings ?<br>are you creating a role for connecting to postgres ?<br>if not creat role:<br><br># /etc/init.d/postgresql restart<br>#su - postgres<br><br>(try to connecting here using your command psql -h, if it connects)<br>
now,<br>(run command for creating role and setting up priviledges for other users.)<br><br>#creatuser -U postgres -P<br>....<br>...<br>...<br>edit the file /var/lib/pgsql/data/pg_hba.conf<br><br>and at the last lines it looks like:<br>
# TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD<br><br># "local" is for Unix domain socket connections only<br>local   all         all                               trust<br># IPv4 local connections:<br>
host    all         all         <a href="http://127.0.0.1/32">127.0.0.1/32</a>          trust<br># IPv6 local connections:<br>host    all         all         ::1/128               ident sameuser<br><br>Good Luck<br><br clear="all">
<br>-- <br>Thanks and Regards,<br>Kapil Singh Kushwah<br>Linux System Administrator<br>Hotwax Media Inc.<br>Indore,(M.P) INDIA<br><br>
</div>