Re: Error message "psql: could not connect to server: No such file or directory"

Поиск
Список
Период
Сортировка
От Stefan Schwarzer
Тема Re: Error message "psql: could not connect to server: No such file or directory"
Дата
Msg-id F192F32B-ED01-4CCF-9F90-9A77165E5A17@unep.org
обсуждение исходный текст
Ответ на Re: Error message "psql: could not connect to server: No such file or directory"  (Stefan Schwarzer <stefan.schwarzer@unep.org>)
Ответы Re: Error message "psql: could not connect to server: No such file or directory"
Re: Error message "psql: could not connect to server: No such file or directory"
Список pgsql-general
> sudo su - _postgres /usr/local/pgsql-9.1/bin/initdb -U postgres -D /usr/local/pgsql-9.1/data --encoding=UTF8
--locale=en_US
> sudo su - _postgres /usr/local/pgsql-9.1/bin/pg_ctl start -D /usr/local/pgsql-9.1/data
>
> Although I don't get an error message, I don't have the feeling that it started the server. There is still nothing in
theprocess list, and a normal "psql" results in the same message as before "psql: could not connect…" 
>
> So sorry for bothering you guys… just being really frustrated now…
>
> If you have any ideas, please let me know… :-)

I just went back to the postgres documentation [1] (actually reading all google results on the error message one after
theother) and tried out what was said there (adapted to my conditions): 

sudo -u _postgres /usr/local/pgsql-9.1/bin/postgres -D /usr/local/pgsql-9.1/data

and suddenly postgres runs….


[1] http://www.postgresql.org/docs/9.1/static/server-start.html

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

Предыдущее
От: Stefan Schwarzer
Дата:
Сообщение: Re: Error message "psql: could not connect to server: No such file or directory"
Следующее
От: Stefan Schwarzer
Дата:
Сообщение: Re: Problem installing extensions on Lion