pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Problem after changing the port number of postgres
3+ messages / 3 participants
[nested] [flat]

* Problem after changing the port number of postgres
@ 2012-09-17 06:25 himanshu.joshi <himanshu.joshi@orkash.com>
  2012-09-17 06:29 ` Re: Problem after changing the port number of postgres Devrim GÜNDÜZ <devrim@gunduz.org>
  0 siblings, 1 reply; 3+ messages in thread

From: himanshu.joshi @ 2012-09-17 06:25 UTC (permalink / raw)
  To: pgsql-admin

Hi,

   I have changed the default port of postgres in file "postgresql.conf" 
from 5432 to another four digit port which was not assigned to any one 
else. After the change I restarted the postgres as well as the system. 
But after changing the port while connecting to postgres I am getting 
this error:

root@s14-apps:/opt/PostgresPlus/8.4SS# bin/psql -Upostgres
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"?

I checked the path /temp/
the .s.PGSQL.____ file is available there for the new port.

Any help is appreciated.

Thanks & Regards
Himanshu Joshi






^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Problem after changing the port number of postgres
  2012-09-17 06:25 Problem after changing the port number of postgres himanshu.joshi <himanshu.joshi@orkash.com>
@ 2012-09-17 06:29 ` Devrim GÜNDÜZ <devrim@gunduz.org>
  2012-09-17 06:34   ` Re: Problem after changing the port number of postgres Rural Hunter <ruralhunter@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Devrim GÜNDÜZ @ 2012-09-17 06:29 UTC (permalink / raw)
  To: himanshu.joshi <himanshu.joshi@orkash.com>; +Cc: pgsql-admin


Hi,

On Mon, 2012-09-17 at 11:55 +0530, himanshu.joshi wrote:
> 
> 
>    I have changed the default port of postgres in file
> "postgresql.conf"  from 5432 to another four digit port which was not
> assigned to any one  else. After the change I restarted the postgres
> as well as the system.  But after changing the port while connecting
> to postgres I am getting  this error:
> 
> root@s14-apps:/opt/PostgresPlus/8.4SS# bin/psql -Upostgres
> 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"?

You need to pass -p parameter to psql:

$ bin/psql -p XXXX

Regards,
-- 
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org  Twitter: http://twitter.com/devrimgunduz

Attachments:

  signature.asc (application/pgp-signature, 197B) download

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Problem after changing the port number of postgres
  2012-09-17 06:25 Problem after changing the port number of postgres himanshu.joshi <himanshu.joshi@orkash.com>
  2012-09-17 06:29 ` Re: Problem after changing the port number of postgres Devrim GÜNDÜZ <devrim@gunduz.org>
@ 2012-09-17 06:34   ` Rural Hunter <ruralhunter@gmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Rural Hunter @ 2012-09-17 06:34 UTC (permalink / raw)
  To: pgsql-admin

or set the 'PGPORT' env variable.

于 2012/9/17 14:29, Devrim GÜNDÜZ 写道:
> Hi,
>
> On Mon, 2012-09-17 at 11:55 +0530, himanshu.joshi wrote:
>>
>>     I have changed the default port of postgres in file
>> "postgresql.conf"  from 5432 to another four digit port which was not
>> assigned to any one  else. After the change I restarted the postgres
>> as well as the system.  But after changing the port while connecting
>> to postgres I am getting  this error:
>>
>> root@s14-apps:/opt/PostgresPlus/8.4SS# bin/psql -Upostgres
>> 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"?
> You need to pass -p parameter to psql:
>
> $ bin/psql -p XXXX
>
> Regards,





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2012-09-17 06:34 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-09-17 06:25 Problem after changing the port number of postgres himanshu.joshi <himanshu.joshi@orkash.com>
2012-09-17 06:29 ` Devrim GÜNDÜZ <devrim@gunduz.org>
2012-09-17 06:34   ` Rural Hunter <ruralhunter@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox