Re: Database Name

From: Bernt Andreas Drange <bernt(dot)andreas(dot)drange(at)imr(dot)no>
To: pgsql-admin(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: Database Name
Date: 2005-03-02 14:28:25
Message-ID: 1109773705.5490.55.camel@bender
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

On Tue, 2005-03-01 at 09:44 +1300, Envbop wrote:
> Hi
>
> I've just inherited a PostgreSQL database, for which I do not have any
> details of, like database name or the users.
> This used to be a library database which was managed via a web page written
> in php.
> Its running on a Linux box.
> The front end was also written in php. The original writers of this
> application is no longer.
>
> I've just started to get familiarisd with postgresql in the last week. and
> have installed PostgreSQL v8.0.1 on a Windows server.
> And I am trying to connect to the linux box via the phppgadmin tool. as well
> as trying an odbc connection.
>
> Can someone tell me where I can find the database names.

If you look at the php source code, you will find the database name,
user name and password that the php scripts use to connect to the
database.

That should be a good start.

If php uses odbc to connect, you might also check /etc/odbc.ini on the
linux box.

Good luck!

Bernt

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Administrator 2005-03-02 15:46:36 pg_shadow deleted by mistake with no backup
Previous Message Warren Little 2005-03-02 13:40:46 Re: Error when trying to do a recovery

Browse pgsql-general by date

  From Date Subject
Next Message Alexandru Coseru 2005-03-02 14:41:25 Error: "catalog is missing 8 attribute(s) for relid 16683"
Previous Message Ben Trewern 2005-03-02 14:23:30 Re: to_char bug?