failing to connect to postgresql with php

Поиск
Список
Период
Сортировка
Искать

failing to connect to postgresql with php

От:
victor katemana <developervickatg@gmail.com>
Дата:
i have installed postgres 8.4 server in ubuntu 10.04, clearly following all procedures. what is disappointing me i cant establish connection to the database server when am configuring postgres with php. whenever i use this postgres database function i dont even receive an error message. the server just remains quite. more on than when i execute the command 

#psql template1 on my terminal i receive this error message

psql: could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
 can someone help me out please

Re: failing to connect to postgresql with php

От:
Viktor Bojović <viktor.bojovic@gmail.com>
Дата:


On Mon, Jan 17, 2011 at 9:42 AM, victor katemana <developervickatg@gmail.com> wrote:
i have installed postgres 8.4 server in ubuntu 10.04, clearly following all procedures. what is disappointing me i cant establish connection to the database server when am configuring postgres with php. whenever i use this postgres database function i dont even receive an error message. the server just remains quite. more on than when i execute the command

#psql template1 on my terminal i receive this error message

psql: could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
 can someone help me out please

if not started start it using
/etc/init.d/postgresql-8.3 start



--
---------------------------------------
Viktor Bojović
---------------------------------------
Wherever I go, Murphy goes with me

Re: failing to connect to postgresql with php

От:
Marcin Mirosław <marcin@mejor.pl>
Дата:
W dniu 17.01.2011 09:42, victor katemana pisze:
> psql: could not connect to server: No such file or directory
>     Is the server running locally and accepting
>     connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
>  can someone help me out please

Check permissions to the socket.
Regards

FAQ