Re: db dump from php - Mailing list pgsql-novice

From Andreas Kretschmer
Subject Re: db dump from php
Date
Msg-id 20130107190924.GA6003@tux
Whole thread Raw
In response to Re: db dump from php  (jody <jody.xha@gmail.com>)
List pgsql-novice
jody <jody.xha@gmail.com> wrote:

> Hi
> I have now changed all entries in pg_hba.conf to 'trust'
>
> I have modified the call as suggested by Christian.
>
> When i call the php script from the command line, the dump i made.
>
> When i call it from apache, i get the output
>
>  pg_dump: [archiver (db)] connection to database "magnus2" failed:
> could not connect to server: Permission denied Is the server running
> locally and accepting connections on Unix domain socket
> "/run/postgresql/.s.PGSQL.5432"?

check if the file (socket) exists. Try to connect via tcp/ip using
parameter -h <hostname or ip>


Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°


pgsql-novice by date:

Previous
From: jody
Date:
Subject: Re: db dump from php
Next
From: Tom Lane
Date:
Subject: Re: db dump from php