Re: DB Error
| From: | Martin Marques | Date: | Sat, 10 May 2003 14:50:53 +0000 |
| Subject: | Re: DB Error | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-5293@lists.php.net to get a copy of this message | ||
On Jue 08 May 2003 15:28, Torsten Schmidt wrote:
> Hi all,
>
> this post is a follow up from "undefiend function error --why ? --".
>
> I re-installed php with postgresql-support and the connection seems to
> work now but there is a "no such database" error.
>
> I've tested the database and the permissions before i tried to connect
> via php-pear and everything works fine.
>
> Can someone give me a hint what's wrong?
What does "select * from pg_database where datname='<your DB>'" say? (from
psql).
Try a script the starts the PEAR::DB object and do a var_dump() of the
object to see what it contains.
See the PostgreSQL logs.
--
Porqué usar una base de datos relacional cualquiera,
si podés usar PostgreSQL?
-----------------------------------------------------------------
Martín Marqués | mmarques@unl.edu.ar
Programador, Administrador, DBA | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------