Skip site navigation (1) Skip section navigation (2)

connection problem

From: Tuğberk Kara <tugberkkara(at)gmail(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: connection problem
Date: 2006-07-31 07:18:18
Message-ID: (view raw or whole thread)
Lists: pgsql-interfaces
I have a postgresql installed on a remote machine. I want to connect to it
with libpq but the connection is not successful.
I have this piece of code for connection in my c file:

PGconn *conn=NULL;
char  *conn_str="hostaddr= port=5432 dbname=postgres
user=postgres password=654321 reqiressl=0";




But I can not connect. It exits from the program. I tried also PGconnectdb
but it also did not connect to the databse. But I can connect to it thorough
pgAdmin with the same credentials. Can you help me please urgently!'!!!


pgsql-interfaces by date

Next:From: Michael FuhrDate: 2006-07-31 12:52:52
Subject: Re: SPI_getvalue fails
Previous:From: vivekDate: 2006-07-31 06:59:25
Subject: SPI_getvalue fails

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group