pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <smarlowe@g2switchworks.com>
To: Tomeh, Husam <htomeh@firstam.com>
Cc: jeff shu <flashqa7@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: db connection and script execution error
Date: Fri, 30 Sep 2005 13:10:00 -0500
Message-ID: <1128103800.29347.105.camel@state.g2switchworks.com> (raw)
In-Reply-To: <C45835824D00A844BBD0F032D5CDED920116DDB4@pisgana01sxch01.ana.firstamdata.com>
References: <C45835824D00A844BBD0F032D5CDED920116DDB4@pisgana01sxch01.ana.firstamdata.com>

On Fri, 2005-09-30 at 12:09, Tomeh, Husam wrote:
> 1. create db by using postgres manager Lite's create db wizard
> 
> db name new_db / host : lost host/port: 5432/login: postgres
> when I tried to connect to this db I got FATAL error, ¡°database
> new_db doesn¡¯t exist."

Sounds like you created a database named something like:

MyDatabase

and are now referencing it as

mydatabase.

Make sure that whatever you call it in the creation wizard you call it
that later.  and you can save yourself a lot of little headaches by just
naming everything, everywhere in lower case.

> The above suggest that you haven't created your database (new_db) on
> the postgres server.
>  
> ---
>  
> 2. Then I registered new host on port 5433, tried to connect. I got
> follwing error, ¡°error connection to server, is the server running on
> host 127.0.0.1, and allow TCP/IP connection on port 5433?¡± 
> 
> The above error may be due to not setting up your pg_hba.conf
> correctly to accept TCP/IP connection from your PC. Or it there could
> be a firewall issue. 

Note that you also have to edit postgresql.conf to get a database to
answer sometimes as well.



view thread (4+ messages)

Message-ID: <1128103800.29347.105.camel@state.g2switchworks.com>
Permalink:  ../1128103800.29347.105.camel@state.g2switchworks.com/
Also on:    postgresql.org/message-id/1128103800.29347.105.camel@state.g2switchworks.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: smarlowe@g2switchworks.com, htomeh@firstam.com, flashqa7@yahoo.com
  Subject: Re: db connection and script execution error
  In-Reply-To: <1128103800.29347.105.camel@state.g2switchworks.com>
  References: <C45835824D00A844BBD0F032D5CDED920116DDB4@pisgana01sxch01.ana.firstamdata.com> <1128103800.29347.105.camel@state.g2switchworks.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox