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

Re: Regarding Postgres access through C

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Regarding Postgres access through C
Date: 2006-02-23 10:14:13
Message-ID: 20060223101413.GG24821@webserv.wug-glas.de (view raw or flat)
Thread:
Lists: pgsql-novice
am  23.02.2006, um 15:31:22 +0530 mailte Krishnaprasad folgendes:
> Dear all
> 
>        While trying to connect to postgressql through C program iam getting 
> the following error .....
>                              Connection to database failed.
>                         FATAL:  user "root" does not exist
> 
> How can I connect to the database as user 'postgres' through C .


Read:
http://www.postgresql.org/docs/8.1/interactive/ecpg-connect.html

You can find there a example.


HTH, Andreas
-- 
Andreas Kretschmer    (Kontakt: siehe Header)
Heynitz:  035242/47215,      D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
 ===    Schollglas Unternehmensgruppe    === 

In response to

pgsql-novice by date

Next:From: Naz GassiepDate: 2006-02-23 10:14:39
Subject: Re: Regarding Postgres access through C
Previous:From: KrishnaprasadDate: 2006-02-23 10:01:22
Subject: Regarding Postgres access through C

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