Thread: Re: [INTERFACES] Pgaccess - Error trying to connect

Re: [INTERFACES] Pgaccess - Error trying to connect

From
"Don Oliver"
Date:
"Dave Del Signore" wrote
>Try editing the script by hand, and find the line which is of the form:
>su -l postgres -c "$BINDIR/postmaster -i -S -D$DATADIR"
yes, this is OK

"Joe Shevland" wrote
>Do a:
>netstat -an
>and check if anything is listening on port 5432.
I get: tcp  0  0 0.0.0.0:5432  0.0.0.0:*  LISTEN

>Also, try looking at your ODBC data source definition
>and check the hostname/IP address setting.

>Once you've verified this, try pinging that hostname
>or IP address from your DOS-prompt to see if its
>reachable via TCP/IP.
I'll have to look up what these mean and how to do them.I'm still pretty ignorant. :-)

"Tom Lane" wrote
>If you mean that "psql" works, that's good, but by default psql tries to
>connect via a Unix socket file, not via TCP/IP.  So TCP connection
>problems won't necessarily show up.  If you use the -h option then psql
>tries to use a TCP connection, which is what pgaccess always tries.
>I'll bet if you do "psql -h localhost" you see the same failure as in
>pgaccess.
I did!

>If you do, say, "telnet localhost 23", do you get a telnet login prompt
>or an error?
I got error no such command. So installed telnet, and now get:"telnet: unable to connect to remote host: Network is
unreachable."
It is now quite apparent that my problem is not with PgAccess, but with     my 
network setup. I'll work on this. I see that I have lots more reading     to 
do!Many thanks to you all for the help. I would never have thought of these things myself.

Don

Don Oliver
dayo_nanaimo@hotmail.com

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com



Re: [INTERFACES] Pgaccess - Error trying to connect

From
Ed Loehr
Date:
Don Oliver wrote:
> 
> 
>         It is now quite apparent that my problem is not with PgAccess, but with         my
> network setup. I'll work on this. I see that I have lots more reading   to
> do!
>         Many thanks to you all for the help. I would never have thought of these
>         things myself.

Getting off-topic, but if I assume correctly that you are running
linux, may I recommend a book called "Running Linux", but Matt Welsh,
et.al.?  It will give you a lot of guidance as you sort these details
out...

In the end, you should be able to see this kind of result locally:

% ping localhost
PING localhost (127.0.0.1) from 127.0.0.1 : 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.1 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=255 time=0.0 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=255 time=0.0
ms                         
...

Cheers,
Ed Loehr