pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Connection problem (newbie question)
9+ messages / 8 participants
[nested] [flat]

* Connection problem (newbie question)
@ 2002-12-07 20:51 Paul Kavanagh <p_kavanagh@yahoo.com>
  2002-12-07 21:48 ` Re: Connection problem (newbie question) TaChung Huang <tachung_h@yahoo.com>
  2002-12-09 08:37 ` Re: Connection problem (newbie question) Mohd Ghalib Akhtar <md_ghalib@yahoo.com>
  0 siblings, 2 replies; 9+ messages in thread

From: Paul Kavanagh @ 2002-12-07 20:51 UTC (permalink / raw)
  To: pgsql-admin

Hi,

I've just installed Postgresql 7.3 via Cygwin on Win2K, started the
postmaster successfully, yet cannot connect using psql. See below for trace:

$ pg_ctl start -D /usr/share/postresql/data -l serverlog
postmaster successfully started

$ psql
psql: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

I've attached my .conf.

Any ideas ?

Thanks in advance,
-Paul

Attachments:

  postgresql.conf (application/octet-stream, 5.1K) download

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Connection problem (newbie question)
  2002-12-07 20:51 Connection problem (newbie question) Paul Kavanagh <p_kavanagh@yahoo.com>
@ 2002-12-07 21:48 ` TaChung Huang <tachung_h@yahoo.com>
  2002-12-08 05:30   ` Re: Connection problem (newbie question) Paul Kavanagh <p_kavanagh@yahoo.com>
  1 sibling, 1 reply; 9+ messages in thread

From: TaChung Huang @ 2002-12-07 21:48 UTC (permalink / raw)
  To: 'Paul Kavanagh' <p_kavanagh@yahoo.com>; pgsql-admin

HI Paul: you would need to specify a database name such as the
"template1". The "template1" database is installed by default as you
install PostgreSQL. 

psql <database name>

If you do not specify a database name, the default database name that
psql will use is 'postgresql"


Regards 
TaChung Huang (¶À¤j©¾) 



-----Original Message-----
From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Paul Kavanagh
Sent: Saturday, December 07, 2002 12:51 PM
To: pgsql-admin@postgresql.org
Subject: [ADMIN] Connection problem (newbie question)


Hi,

I've just installed Postgresql 7.3 via Cygwin on Win2K, started the
postmaster successfully, yet cannot connect using psql. See below for
trace:

$ pg_ctl start -D /usr/share/postresql/data -l serverlog postmaster
successfully started

$ psql
psql: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

I've attached my .conf.

Any ideas ?

Thanks in advance,
-Paul




^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Connection problem (newbie question)
  2002-12-07 20:51 Connection problem (newbie question) Paul Kavanagh <p_kavanagh@yahoo.com>
  2002-12-07 21:48 ` Re: Connection problem (newbie question) TaChung Huang <tachung_h@yahoo.com>
@ 2002-12-08 05:30   ` Paul Kavanagh <p_kavanagh@yahoo.com>
  2002-12-08 15:19     ` Re: Connection problem (newbie question) Nick Fankhauser <nickf@ontko.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Paul Kavanagh @ 2002-12-08 05:30 UTC (permalink / raw)
  To: tachung_h@yahoo.com; pgsql-admin

Thanks TaChung, and I tried that, but unfortunately the end result was the
same:

$ psql template1
psql: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

Connecting to the port via telnet fails:

$ telnet localhost 5432
Connecting To localhost...Could not open a connection to host on port 5432 :
Connect failed

I tried connecting via pgAdmin 11 (1.4) and got the following error msg:
"Number: -2147467259 Description: Could not connect to the server; Could not
connect to the remote socket"

Finally, I ran 'ps -ef' just after the postmaster successfully started (or
so it says), but there's no sign of any postgresql related processes:

$ ps -ef
     UID     PID    PPID TTY     STIME COMMAND
  pkavan    1868       1 con  11:07:57 /usr/bin/bash
  pkavan    1692    1868 con  21:27:06 /usr/bin/ps

I'm guessing the problems are all interconnected, but I thought the above
info might help..

Thanks in advance,
-Paul

> -----Original Message-----
> From: TaChung Huang [mailto:tachung_h@yahoo.com]
> Sent: Saturday, December 07, 2002 1:48 PM
> To: 'Paul Kavanagh'; pgsql-admin@postgresql.org
> Subject: RE: [ADMIN] Connection problem (newbie question)
>
>
> HI Paul: you would need to specify a database name such as the
> "template1". The "template1" database is installed by default as you
> install PostgreSQL.
>
> psql <database name>
>
> If you do not specify a database name, the default database name that
> psql will use is 'postgresql"
>
>
> Regards
> TaChung Huang (¶À¤j©¾)
>
>
>
> -----Original Message-----
> From: pgsql-admin-owner@postgresql.org
> [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Paul Kavanagh
> Sent: Saturday, December 07, 2002 12:51 PM
> To: pgsql-admin@postgresql.org
> Subject: [ADMIN] Connection problem (newbie question)
>
>
> Hi,
>
> I've just installed Postgresql 7.3 via Cygwin on Win2K, started the
> postmaster successfully, yet cannot connect using psql. See below for
> trace:
>
> $ pg_ctl start -D /usr/share/postresql/data -l serverlog postmaster
> successfully started
>
> $ psql
> psql: could not connect to server: No such file or directory
>         Is the server running locally and accepting
>         connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
>
> I've attached my .conf.
>
> Any ideas ?
>
> Thanks in advance,
> -Paul




^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Connection problem (newbie question)
  2002-12-07 20:51 Connection problem (newbie question) Paul Kavanagh <p_kavanagh@yahoo.com>
  2002-12-07 21:48 ` Re: Connection problem (newbie question) TaChung Huang <tachung_h@yahoo.com>
  2002-12-08 05:30   ` Re: Connection problem (newbie question) Paul Kavanagh <p_kavanagh@yahoo.com>
@ 2002-12-08 15:19     ` Nick Fankhauser <nickf@ontko.com>
  0 siblings, 0 replies; 9+ messages in thread

From: Nick Fankhauser @ 2002-12-08 15:19 UTC (permalink / raw)
  To: Paul Kavanagh <p_kavanagh@yahoo.com>; pgsql-admin

Paul-

> Finally, I ran 'ps -ef' just after the postmaster successfully started (or
> so it says), but there's no sign of any postgresql related processes:

This is clearly your problem. See if you can locate the log file & find out
why the processes are dying right away. Usually the location of the log file
is noted in the script you use for start up.

-NF




^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Connection problem (newbie question)
  2002-12-07 20:51 Connection problem (newbie question) Paul Kavanagh <p_kavanagh@yahoo.com>
@ 2002-12-09 08:37 ` Mohd Ghalib Akhtar <md_ghalib@yahoo.com>
  1 sibling, 0 replies; 9+ messages in thread

From: Mohd Ghalib Akhtar @ 2002-12-09 08:37 UTC (permalink / raw)
  To: Paul Kavanagh <p_kavanagh@yahoo.com>; pgsql-admin

Hello

I would like to know the procedure to install PostGres
on Windows NT
machine. Also, if you could please also send me the
Installation, how to download ?





--- Paul Kavanagh <p_kavanagh@yahoo.com> wrote:
> Hi,
> 
> I've just installed Postgresql 7.3 via Cygwin on
> Win2K, started the
> postmaster successfully, yet cannot connect using
> psql. See below for trace:
> 
> $ pg_ctl start -D /usr/share/postresql/data -l
> serverlog
> postmaster successfully started
> 
> $ psql
> psql: could not connect to server: No such file or
> directory
>         Is the server running locally and accepting
>         connections on Unix domain socket
> "/tmp/.s.PGSQL.5432"?
> 
> I've attached my .conf.
> 
> Any ideas ?
> 
> Thanks in advance,
> -Paul
> 

> ATTACHMENT part 2 application/octet-stream
name=postgresql.conf
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
> http://archives.postgresql.org
> 


=====
Take careMohd.Ghalib Akhtar(office)91-11-6152172,Ext-217
Fax : 91-11-6146217, 6149446  
---------------------------------

---------------------------------


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: connection problem (newbie question)
@ 2002-12-08 09:14 Ezra Taylor <EzraTay@netscape.net>
  2002-12-08 10:02 ` Re: connection problem (newbie question) Ezra <epostgres@acedsl.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Ezra Taylor @ 2002-12-08 09:14 UTC (permalink / raw)
  To: pgsql-admin

  Hello Paul:
                    What user are you  using.  Remember, you have a 
 brand new install and haven't created any users yet, except for the 
superuser(postgres).  Try connecting as the postgres(superuser).  

 




^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: connection problem (newbie question)
  2002-12-08 09:14 Re: connection problem (newbie question) Ezra Taylor <EzraTay@netscape.net>
@ 2002-12-08 10:02 ` Ezra <epostgres@acedsl.com>
  2002-12-09 08:05   ` Re: connection problem (newbie question) dima <_pppp@mail.ru>
  0 siblings, 1 reply; 9+ messages in thread

From: Ezra @ 2002-12-08 10:02 UTC (permalink / raw)
  To: ; +Cc: pgsql-admin



Ezra Taylor wrote:

> Hello Paul:
> What user are you using. Remember, you have a brand new install and 
> haven't created any users yet, except for the superuser(postgres). Try 
> connecting as the postgres(superuser).
>
>

-- 
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with Shop@Netscape! 
http://shopnow.netscape.com/





^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: connection problem (newbie question)
  2002-12-08 09:14 Re: connection problem (newbie question) Ezra Taylor <EzraTay@netscape.net>
  2002-12-08 10:02 ` Re: connection problem (newbie question) Ezra <epostgres@acedsl.com>
@ 2002-12-09 08:05   ` dima <_pppp@mail.ru>
  0 siblings, 0 replies; 9+ messages in thread

From: dima @ 2002-12-09 08:05 UTC (permalink / raw)
  To: Ezra <epostgres@acedsl.com>; +Cc: pgsql-admin

>> Hello Paul:
>> What user are you using. Remember, you have a brand new install and 
>> haven't created any users yet, except for the superuser(postgres). Try 
>> connecting as the postgres(superuser).

btw, are you trying to start postmaster as root? it seems that there's a 
bug in postgresql: it says it started successfully when you start it as 
root, but it doesn't start. start it as pgsql (freebsd) or postgres (linux)





^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Connection problem (newbie question)
@ 2002-12-09 11:06 Michael Weaver <mweaver@corpusglobe.com>
  0 siblings, 0 replies; 9+ messages in thread

From: Michael Weaver @ 2002-12-09 11:06 UTC (permalink / raw)
  To: pgsql-admin

Try these great walkthroughs & tips:

http://www.systinet.com/doc/wasp_uddi/databaseInstallationGuide/InstallingDa
tabaseServers.html
http://www.ejip.net/faq/postgresql_win_setup_faq.jsp
http://php.weblogs.com/discuss/post_tips

Other great links.

Comercial PostgreSQL on Windows:
http://www.dbexperts.net/postgresql

Native PostgreSQL on Windows:
http://hp.vector.co.jp/authors/VA023283/PostgreSQLe.html


-----Original Message-----
From: Mohd Ghalib Akhtar [mailto:md_ghalib@yahoo.com]
Sent: Monday, 9 December 2002 4:38 PM
To: Paul Kavanagh; pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Connection problem (newbie question)


Hello

I would like to know the procedure to install PostGres
on Windows NT
machine. Also, if you could please also send me the
Installation, how to download ?





--- Paul Kavanagh <p_kavanagh@yahoo.com> wrote:
> Hi,
> 
> I've just installed Postgresql 7.3 via Cygwin on
> Win2K, started the
> postmaster successfully, yet cannot connect using
> psql. See below for trace:
> 
> $ pg_ctl start -D /usr/share/postresql/data -l
> serverlog
> postmaster successfully started
> 
> $ psql
> psql: could not connect to server: No such file or
> directory
>         Is the server running locally and accepting
>         connections on Unix domain socket
> "/tmp/.s.PGSQL.5432"?
> 
> I've attached my .conf.
> 
> Any ideas ?
> 
> Thanks in advance,
> -Paul
> 

> ATTACHMENT part 2 application/octet-stream
name=postgresql.conf
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
> http://archives.postgresql.org
> 


=====
Take careMohd.Ghalib Akhtar(office)91-11-6152172,Ext-217
Fax : 91-11-6146217, 6149446  
---------------------------------

---------------------------------


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

^ permalink  raw  reply  [nested|flat] 9+ messages in thread


end of thread, other threads:[~2002-12-09 11:06 UTC | newest]

Thread overview: 9+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-12-07 20:51 Connection problem (newbie question) Paul Kavanagh <p_kavanagh@yahoo.com>
2002-12-07 21:48 ` TaChung Huang <tachung_h@yahoo.com>
2002-12-08 05:30   ` Paul Kavanagh <p_kavanagh@yahoo.com>
2002-12-08 15:19     ` Nick Fankhauser <nickf@ontko.com>
2002-12-09 08:37 ` Mohd Ghalib Akhtar <md_ghalib@yahoo.com>
2002-12-08 09:14 Re: connection problem (newbie question) Ezra Taylor <EzraTay@netscape.net>
2002-12-08 10:02 ` Re: connection problem (newbie question) Ezra <epostgres@acedsl.com>
2002-12-09 08:05   ` Re: connection problem (newbie question) dima <_pppp@mail.ru>
2002-12-09 11:06 Re: Connection problem (newbie question) Michael Weaver <mweaver@corpusglobe.com>

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