From: Borsos József <pgsql-php@Borsos.hu>
To: Mileta Vinerte <mvinerte@cbnco.com>
Cc: pgsql-php@postgresql.org
Subject: Re: what do I wrong???
Date: Thu, 6 Feb 2003 15:00:12 +0100
Message-ID: <000e01c2cde8$13b30000$790aa3d5@compax> (raw)
References: <000b01c2c3d2$0d80f9a0$790aa3d5@compax>
<3E368E04.7060308@cbnco.com>
----- Original Message -----
From: Mileta Vinerte
To: Borsos József
Sent: Tuesday, January 28, 2003 3:04 PM
Subject: Re: [PHP] what do I wrong???
Hi Jozsef,
Ther is my code (db_connect.php):
<?php
//*********************************************************************************
// db_connect.php
//
// 1. Connect to the server
// 2. Connect to the database with the username=postgres and pw=postgre$
//
//*********************************************************************************
$server="172.30.30.27";
$port="5432";
$db="doors";
$dbusername="postgres";
$dbuserpw="postgre$";
//connect to server
$serverconn =pg_Connect($server, $port,$db);
if(!$serverconn)
{
echo "ERROR: Connection to Server failed!";
exit;
}
$dbconn =pg_pconnect("dbname=$db user=$dbusername password=$dbuserpw");
if(!$dbconn)
{
echo "ERROR: Connection to Database failed!";
exit;
}
?>
Borsos József wrote:
$conn_string = "host=x.x.x.x port=5432 dbname=xxxx user=COMPAX password=xxxx";
$connect = pg_connect($conn_string);
RESULT:
Warning: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server: Password authentication failed for user 'COMPAX' . in xxx on line 4
Thanks for helping, but this is the answer:
Warning: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server: fe_sendauth: no password supplied . in C:\Inetpub\wwwroot\Borsos\db_connect.php on line 17
ERROR: Connection to Server failed!
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: pgsql-php@Borsos.hu, mvinerte@cbnco.com
Subject: Re: what do I wrong???
In-Reply-To: <000e01c2cde8$13b30000$790aa3d5@compax>
References: <000b01c2c3d2$0d80f9a0$790aa3d5@compax> <3E368E04.7060308@cbnco.com> <000e01c2cde8$13b30000$790aa3d5@compax>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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