Re: Problem after changing the port number of postgres

Поиск
Список
Период
Сортировка
От Devrim GÜNDÜZ
Тема Re: Problem after changing the port number of postgres
Дата
Msg-id 1347863385.16960.19.camel@lenovo01-laptop03.gunduz.org
обсуждение исходный текст
Ответ на Problem after changing the port number of postgres  ("himanshu.joshi" <himanshu.joshi@orkash.com>)
Ответы Re: Problem after changing the port number of postgres
Список 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

Вложения

В списке pgsql-admin по дате отправления:

Предыдущее
От: "himanshu.joshi"
Дата:
Сообщение: Problem after changing the port number of postgres
Следующее
От: Rural Hunter
Дата:
Сообщение: Re: Problem after changing the port number of postgres