Re: db dump from php

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: db dump from php
Date: 2013-01-07 19:09:24
Message-ID: 20130107190924.GA6003@tux
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

jody <jody(dot)xha(at)gmail(dot)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°

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2013-01-07 19:19:21 Re: db dump from php
Previous Message jody 2013-01-07 19:02:24 Re: db dump from php