Re: Problem with PostgreSQL: unable to connect to database

From: "Cheah Ai Meng" <aimeng(dot)cheah(at)nus(dot)edu(dot)sg>
To: "Igor Georgiev" <gory(at)alphasoft-bg(dot)com>, "Pgsql-Cygwin" <pgsql-cygwin(at)postgresql(dot)org>
Subject: Re: Problem with PostgreSQL: unable to connect to database
Date: 2003-01-23 08:38:05
Message-ID: 858F42BD6D0A8245863391B6894FC8ECABEB61@MBXSRV23.stu.nus.edu.sg
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

Hi!

Thanks for your advice. But I'm still getting the same error message at
pgAdmin II 1.4. Please advice me further. Thanks!


-----Original Message-----
From: Igor Georgiev [mailto:gory(at)alphasoft-bg(dot)com]
Sent: Thursday, January 23, 2003 5:25 PM
To: Cheah Ai Meng; Pgsql-Cygwin
Subject: Re: [CYGWIN] Problem with PostgreSQL: unable to connect to
database


Hi PostgreSQL folks!

I'm having problems in connecting my PostgreSQL database to the server.
I'm using PostgreSQL 7.3 and pgAdmin II 1.4. This is the situation:


1. At the Cygwin window,

eng91066(at)ENG91066 ~
$ initdb -D /usr/local/pgsql/data
The files belonging to this database system will be owned by user
"eng91066".
This user must also own the server process.

The database cluster will be initialized with locale C.

initdb: The directory /usr/local/pgsql/data exists but is not empty.
If you want to create a new database system, either remove or empty the
directory /usr/local/pgsql/data or run initdb with an argument other
than /usr/local/pgsql/data.

eng91066(at)ENG91066 ~
$ /usr/bin/pg_ctl -D /usr/local/pgsql/data -o -i -l logfile start
postmaster successfully started


2. However, at pgAdmin window, when I tried to connect to the server,
this is what I did:

Connect to Server
Server: localhost
Port: 5432
Username: aiming
Password: *******
Clicked on "Connect"

And this is the response that I got:

An error has occurred in pgAdmin II:frmConnect.cmdConnect_Click:
Number= -2147467259
Description: Could not connect to server;
Could not connect to remote socket.

try this
/usr/bin/pg_ctl start -D /usr/local/pgsql/data -l logfile -o "-i"

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Igor Georgiev 2003-01-23 09:24:31 Re: Problem with PostgreSQL: unable to connect to database
Previous Message Dan Holmsand 2003-01-22 22:05:39 Re: Initdb fails... Again!