PDO & PHP 5.1.2

PDO & PHP 5.1.2

am 03.02.2006 21:08:51 von John Mohr

This is a multi-part message in MIME format.

------=_NextPart_000_0015_01C628CB.5C3B9A80
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

I'm trying to use the PDO for postgres under PHP 5.1.2. I'm getting a
"cannot find driver" on the connect. Format for DSN is:

"pgsql:host=localhost port=5432 dbname=xxx" with the user and pw passed as
separate parameters. This worked under 5.0.x.

Under 5.0.x I had the separately compile and install pdo_pgsql driver. Under
5.1.2 it appears that it is getting it automagically. Does anyone have any
suggestions?


------=_NextPart_000_0015_01C628CB.5C3B9A80
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable



charset=3Diso-8859-1">


I'm =
trying to use=20
the PDO for postgres under PHP 5.1.2. I'm getting a "cannot find driver" =
on the=20
connect. Format for DSN is:

size=3D2> 

size=3D2>"pgsql:host=3Dlocalhost port=3D5432 dbname=3Dxxx" with the user =
and pw passed=20
as separate parameters. This worked under 5.0.x.

size=3D2> 

Under =
5.0.x I had=20
the separately compile and install pdo_pgsql driver. Under 5.1.2 it =
appears that=20
it is getting it automagically. Does anyone have any=20
suggestions?

 

 


------=_NextPart_000_0015_01C628CB.5C3B9A80--

Re: PDO & PHP 5.1.2

am 03.02.2006 21:15:51 von gmr

--Apple-Mail-7--370721846
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed

Did you check phpinfo to make sure the pgsql driver is there? You
generally have to do --with-pdo-pgsql (I think is the switch).

Gavin


On Feb 3, 2006, at 12:08 PM, John Mohr wrote:

> I'm trying to use the PDO for postgres under PHP 5.1.2. I'm getting
> a "cannot find driver" on the connect. Format for DSN is:
>
> "pgsql:host=localhost port=5432 dbname=xxx" with the user and pw
> passed as separate parameters. This worked under 5.0.x.
>
> Under 5.0.x I had the separately compile and install pdo_pgsql
> driver. Under 5.1.2 it appears that it is getting it automagically.
> Does anyone have any suggestions?
>
>

Gavin M. Roy
800 Pound Gorilla
gmr@ehpg.net



--Apple-Mail-7--370721846
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=ISO-8859-1

-khtml-line-break: after-white-space; ">Did you check phpinfo to make =
sure the pgsql driver is there?=A0 You generally have to do =
--with-pdo-pgsql (I think is the switch).


class=3D"khtml-block-placeholder">
Gavin

class=3D"khtml-block-placeholder">

On Feb 3, =
2006, at 12:08 PM, John Mohr wrote:

class=3D"Apple-interchange-newline">
=
size=3D"2">I'm trying to use the PDO for postgres under PHP 5.1.2. I'm =
getting a "cannot find driver" on the connect. Format for DSN =
is:
face=3D"Arial" size=3D"2">=A0
class=3D"440550220-03022006"> size=3D"2">"pgsql:host=3Dlocalhost port=3D5432 dbname=3Dxxx" with the =
user and pw passed as separate parameters. This worked under =
5.0.x.
face=3D"Arial" size=3D"2">=A0
class=3D"440550220-03022006">Under 5.0.x =
I had the separately compile and install pdo_pgsql driver. Under 5.1.2 =
it appears that it is getting it automagically. Does anyone have any =
suggestions?
size=3D"2">=A0
=A0

=
Gavin M. Roy
800 Pound Gorilla

class=3D"khtml-block-placeholder">
=

=

--Apple-Mail-7--370721846--