Re: MDTFATAL: could note create log file . . . permission denied

Поиск
Список
Период
Сортировка
От Brent Dombrowski
Тема Re: MDTFATAL: could note create log file . . . permission denied
Дата
Msg-id 10F1892A-2580-4CBF-A8D9-B362E8913D33@gmail.com
обсуждение исходный текст
Ответ на MDTFATAL: could note create log file . . . permission denied  (Pyrogerg <gregory.penn@gmail.com>)
Ответы Re: MDTFATAL: could note create log file . . . permission denied  (Pyrogerg <gregory.penn@gmail.com>)
Список pgsql-novice
On Apr 18, 2011, at 7:47 PM, Pyrogerg wrote:

> After many more hours than it would've taken someone more competent, I
> finally have postgresql 9.0 installed on my Mac (OS 10.6). Now I'm trying to
> start the server and create a test database, but I've run into a problem . .
> .
>
> gpennhost:data postgres$ /usr/local/pgsql/bin/pg_ctl -D
> /usr/local/pgsql/data -l logfile start
> server starting
> gpennhost:data postgres$ createdb test
> 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"?
> gpennhost:data postgres$
>
> I've looked at the config file, and verified that the port defaults to 5432,
> but I don't know what else to do. I've spent 10 hours today getting to this
> point, and searching this forum and others hasn't turned up a solution. If
> you have advice on how to proceed, please keep in mind that I am very new to
> this.
>
> Thanks in advance.


The logfile is set to the current directory. Try using the full path to the logfile. It needs to be in a directory that
thepostgres owner can write to. 

gpennhost: data postgres$ /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data -l /some/path/here/logfile start


Brent D.


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

Предыдущее
От: Pyrogerg
Дата:
Сообщение: MDTFATAL: could note create log file . . . permission denied
Следующее
От: Pyrogerg
Дата:
Сообщение: Re: MDTFATAL: could note create log file . . . permission denied