pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql-odbc
4+ messages / 3 participants
[nested] [flat]

* pgsql-odbc
@ 2005-07-13 08:56  Minal <minalac@yes2etl.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Minal @ 2005-07-13 08:56 UTC (permalink / raw)
  To: pgsql-odbc

This is my code which I have included to connect to postgresql in SUSE 
linux from windows machine.

Dim MyDB As New ADODB.Connection
Dim Rc As New ADODB.Recordset
Private Sub Command1_Click()

With MyDB
  .CursorLocation = adUseClient
  .Open "Provider='PostgreSQL';Database='test';host='10.1.2.86';"
 
End With

End Sub

I am getting the following error:
"Could not connect to server:connection refused(0x0000274D/10061) is the 
server running on the host"" and accepting TCP/IP on port 5432"

I  have modified pg_hba.conf  on the linux server to allow connections 
froms other hosts also.
Just dont know what to do??

Minal



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

* Re: pgsql-odbc
@ 2005-07-13 12:52  Joel Fradkin <jfradkin@wazagua.com>
  parent: Minal <minalac@yes2etl.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Joel Fradkin @ 2005-07-13 12:52 UTC (permalink / raw)
  To: 'Minal' <minalac@yes2etl.com>; pgsql-odbc

In the conf file there is a setting to allow tcpip 
listen_addresses = '*'	# what IP interface(s) to listen on; 
				# defaults to localhost, '*' = any
port = 5432
max_connections = 100

as well as the hba settings you mentioned
host    all         all         192.168.123.121 255.255.255.0       trust

you might try using pgadminIII to confirm you can connect.

My connect looks like 
Session("StringConn") =
"DRIVER={PostgreSQL};DATABASE=wazuni;SERVER=192.168.123.121;PORT=5432;UID=po
stgres;PWD=;ReadOnly=0;Protocol=6.4;FakeOidIndex=0;ShowOidColumn=0;RowVersio
ning=0;ShowSystemTables=0;ConnSettings=;Fetch=100;Socket=4096;UnknownSizes=0
;MaxVarcharSize=254;MaxLongVarcharSize=8190;Debug=0;CommLog=0;Optimizer=1;Ks
qo=1;UseDeclareFetch=0;TextAsLongVarchar=1;UnknownsAsLongVarchar=0;BoolsAsCh
ar=1;Parse=0;CancelAsFreeStmt=0;ExtraSysTablePrefixes=dd_;LFConversion=1;Upd
atableCursors=1;DisallowPremature=0;TrueIsMinus1=0;BI=0;ByteaAsLongVarBinary
=0;UseServerSidePrepare=0"

Joel Fradkin
 
Wazagua, Inc.
2520 Trailmate Dr
Sarasota, Florida 34243
Tel.  941-753-7111 ext 305
 
jfradkin@wazagua.com
www.wazagua.com
Powered by Wazagua
Providing you with the latest Web-based technology & advanced tools.
C 2004. WAZAGUA, Inc. All rights reserved. WAZAGUA, Inc
 This email message is for the use of the intended recipient(s) and may
contain confidential and privileged information.  Any unauthorized review,
use, disclosure or distribution is prohibited.  If you are not the intended
recipient, please contact the sender by reply email and delete and destroy
all copies of the original message, including attachments.
 

 

-----Original Message-----
From: pgsql-odbc-owner@postgresql.org
[mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Minal
Sent: Wednesday, July 13, 2005 4:56 AM
To: pgsql-odbc@postgresql.org
Subject: [ODBC] pgsql-odbc

This is my code which I have included to connect to postgresql in SUSE 
linux from windows machine.

Dim MyDB As New ADODB.Connection
Dim Rc As New ADODB.Recordset
Private Sub Command1_Click()

With MyDB
  .CursorLocation = adUseClient
  .Open "Provider='PostgreSQL';Database='test';host='10.1.2.86';"
 
End With

End Sub

I am getting the following error:
"Could not connect to server:connection refused(0x0000274D/10061) is the 
server running on the host"" and accepting TCP/IP on port 5432"

I  have modified pg_hba.conf  on the linux server to allow connections 
froms other hosts also.
Just dont know what to do??

Minal

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster




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

* pgsql-odbc
@ 2005-07-14 06:53  Minal <minalac@yes2etl.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Minal @ 2005-07-14 06:53 UTC (permalink / raw)
  To: pgsql-odbc

I am using pgadminIII from a windows machine to connect the postgresql 
database in linux, but I am getting the error as shown in the 
figure...Please help..My database is on 10.1.2.86

Minal

Attachments:

error.gif (image/gif, 7.6K) download view image
^ permalink raw reply [nested|flat] 4+ messages in thread

* Re: pgsql-odbc
@ 2005-07-14 09:57  Richard Huxton <dev@archonet.com>
  parent: Minal <minalac@yes2etl.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Richard Huxton @ 2005-07-14 09:57 UTC (permalink / raw)
  To: Minal <minalac@yes2etl.com>; +Cc: pgsql-odbc

Minal wrote:
> I am using pgadminIII from a windows machine to connect the postgresql 
> database in linux, but I am getting the error as shown in the 
> figure...Please help..My database is on 10.1.2.86

It's considered better to post the text of the error message rather than 
an image of it.

Well "Is the server running on host 10.1.2.86 and accepting TCP/IP 
connections on port 5432"? If the answer is "yes", is there anything 
different about your test than about connecting via pg-admin?

Oh, and I don't think pg-admin uses odbc to connect anyway, so this is 
probably the wrong list technically speaking.

-- 
   Richard Huxton
   Archonet Ltd



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


end of thread, other threads:[~2005-07-14 09:57 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-07-13 08:56 pgsql-odbc Minal <minalac@yes2etl.com>
2005-07-13 12:52 ` Joel Fradkin <jfradkin@wazagua.com>
2005-07-14 06:53 pgsql-odbc Minal <minalac@yes2etl.com>
2005-07-14 09:57 ` Richard Huxton <dev@archonet.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