Re: starting up database server + user postgres

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: starting up database server + user postgres
Дата
Msg-id 11031.1062450457@sss.pgh.pa.us
обсуждение исходный текст
Ответ на starting up database server + user postgres  (Jennifer Liu <jennliu@MIT.EDU>)
Список pgsql-novice
Jennifer Liu <jennliu@MIT.EDU> writes:
> root# /usr/local/pgsql/bin/createdb test
> 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"?
> createdb: database creation failed

The PG postmaster isn't running, evidently.  You didn't say what Linux
distro you are using, so it's hard to give exact details about how to
start it, or to tell whether there's any preliminary setup you need to
do.  It seems odd that you have a postgres group but not a postgres
user, though.

> root# chown postgres /usr/local/pgsql/data
> chown: `postgres': invalid user

Is that directory already there?  If so, what user owns it?  That's
probably the user you want to start the postmaster as.

            regards, tom lane

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

Предыдущее
От: "Luis H."
Дата:
Сообщение: Re: ORDER BY question
Следующее
От: "mathan"
Дата:
Сообщение: Re: starting up database server + user postgres