| From: | "Aaron J(dot) Seigo" <aaron(at)gtv(dot)ca> |
|---|---|
| To: | Sebestyen Zoltan <szoli(at)netvisor(dot)hu>, PostgreSQL general mailinglist <pgsql-general(at)postgreSQL(dot)org> |
| Subject: | Re: [GENERAL] php - pgsql connection |
| Date: | 1999-10-15 19:03:48 |
| Message-ID: | 99101513065402.00558@stilborne |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
hi...
> I would like to know what's the problem with following line:
> $dbConn = pg_Connect( " host=$host user=$user password=$password port=$port dbname=$dbname");
>
> The php variables are filled with the appropriate values.
are you sure?
> Warning: Unable to connect to PostgresSQL server: connectDB() -- connect
> () failed: Can't assign requested address Is the postmaster running (with
> -i) at 'localhost' and accepting connections on TCP/IP port 'dbname='? in
^^^^^^^^^^^
my guess is that $port is not assigned. its trying to connect to port
'dbname=', which is actually the start of the next variable pair. $port should
have some numeric data in it, something like 5432...
--
Aaron J. Seigo
Sys Admin
| From | Date | Subject | |
|---|---|---|---|
| Next Message | soundar rajan | 1999-10-15 19:36:48 | jdbc problem |
| Previous Message | Aaron J. Seigo | 1999-10-15 18:58:15 | Re: [GENERAL] User defined function |