Initdb problem - catch 22?

Поиск
Список
Период
Сортировка
От Glyn Astill
Тема Initdb problem - catch 22?
Дата
Msg-id 840227.22009.qm@web25802.mail.ukl.yahoo.com
обсуждение исходный текст
Ответы Re: Initdb problem - catch 22?  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: Initdb problem - catch 22?  ("Gurjeet Singh" <singh.gurjeet@gmail.com>)
Список pgsql-general
Hi people,

Right I've setup postgres numerous times without a problem, and this
time I'm using all the same stuff but running into a problem where
initdb won't run without the postgres server running, and the
postgres server will not run without the postgresql.conf etc that
initdb creates!

To start with I tried the following:

#/usr/local/pgsql/bin/createdb SEE --encoding='LATIN1'

Which gave me the error :

createdb: could not connect to database
postgres: 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"?

So okay, I'll try and start the server:

#/usr/local/pgsql/bin/postgres -D /data/postgres
>/data/postgres/psql.log 2>&1 &

and in psql.log I get the error:

"postgres cannot access the server configuration file
"/data/postgres/postgresql.conf": No such file or directory"

I shout at it I know!!!! Initdb should have done it!!

Anyone got any idea what's eating my lunch? Maybe I ran something in
the wrong order?

Thanks
Glyn


      ___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/


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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Trouble running PostgreSQL server / Server must be started under certain locale.
Следующее
От: Glyn Astill
Дата:
Сообщение: Initdb problem - catch 22?