not able to connect to Database

Started by Nageshwar Raoabout 21 years ago5 messagesgeneral
Jump to latest
#1Nageshwar Rao
NageshwarR@PLANETASIA.COM

Hi,
When I do psql test (database name) it says database "test" does not exists.

But with pgAdminIII utility I get to see the database "test" and able to
create tables ,insert the data etc.....

Why is this?

Rgds
Rao

#2Lonni J Friedman
netllama@gmail.com
In reply to: Nageshwar Rao (#1)
Re: not able to connect to Database

On Thu, 31 Mar 2005 16:10:04 +0530, Nageshwar Rao
<NageshwarR@planetasia.com> wrote:

Hi,

When I do psql test (database name) it says database "test" does not exists.

But with pgAdminIII utility I get to see the database "test" and able to
create tables ,insert the data etc.....

Why is this?

You're connecting to a different host than you think you are?

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman netllama@gmail.com
LlamaLand http://netllama.linux-sxs.org

#3Ragnar Hafstað
gnari@simnet.is
In reply to: Nageshwar Rao (#1)
Re: not able to connect to Database

On Thu, 2005-03-31 at 16:10 +0530, Nageshwar Rao wrote:

When I do psql test (database name) it says database "test" does not
exists.

But with pgAdminIII utility I get to see the database "test" and able
to create tables ,insert the data etc.....

Why is this?

maybe the existing data base is named "Test" ?

what does psql -l say ?

gnari

#4Nageshwar Rao
NageshwarR@PLANETASIA.COM
In reply to: Ragnar Hafstað (#3)
Re: not able to connect to Database

Hi,
Psql -l gives names of databases in which it does not show "test".
But same test I am still able to access through pgAdmin III utility.
Regards
Rao

-----Original Message-----
From: Ragnar Hafstað [mailto:gnari@simnet.is]
Sent: Friday, April 01, 2005 2:46 AM
To: Nageshwar Rao
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] not able to connect to Database

On Thu, 2005-03-31 at 16:10 +0530, Nageshwar Rao wrote:

When I do psql test (database name) it says database "test" does not
exists.

But with pgAdminIII utility I get to see the database "test" and able
to create tables ,insert the data etc.....

Why is this?

maybe the existing data base is named "Test" ?

what does psql -l say ?

gnari

#5Richard Huxton
dev@archonet.com
In reply to: Nageshwar Rao (#4)
Re: not able to connect to Database

Nageshwar Rao wrote:

Hi,
Psql -l gives names of databases in which it does not show "test".
But same test I am still able to access through pgAdmin III utility.

You must be looking at two different installations. Check your
connection settings in pgadmin.

--
Richard Huxton
Archonet Ltd