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

Re: what do I wrong???

From: Borsos József <pgsql-php(at)Borsos(dot)hu>
To: "Mileta Vinerte" <mvinerte(at)cbnco(dot)com>
Cc: <pgsql-php(at)postgresql(dot)org>
Subject: Re: what do I wrong???
Date: 2003-02-06 14:00:12
Message-ID: 000e01c2cde8$13b30000$790aa3d5@compax (view raw, whole thread or download thread mbox)
Lists: pgsql-php
  ----- 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):

  //       db_connect.php
  //      1. Connect to the server
  //    2. Connect to the database with the username=postgres and pw=postgre$


  //connect to server
  $serverconn =pg_Connect($server, $port,$db);

          echo "ERROR: Connection to Server failed!";
  $dbconn =pg_pconnect("dbname=$db user=$dbusername password=$dbuserpw");
          echo "ERROR: Connection to Database failed!";

  Borsos József wrote:

    $conn_string = "host=x.x.x.x port=5432 dbname=xxxx user=COMPAX password=xxxx";
      $connect = pg_connect($conn_string);


    Warning: 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() []: 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!

In response to

pgsql-php by date

Next:From: Martin MarquesDate: 2003-02-10 11:25:15
Subject: Not finding local variables and libs
Previous:From: Martin MarquesDate: 2003-02-05 12:43:31
Subject: Re: 7.3.1 BREAKS COMPATIBILITY with the latest PHP4 (due to

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