PDO & PHP 5.1.2
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1528" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D440550220-03022006><FONT face=3DArial size=3D2>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:</FONT></SPAN></DIV>
<DIV><SPAN class=3D440550220-03022006><FONT face=3DArial
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D440550220-03022006><FONT face=3DArial
size=3D2>"pgsql:host=3Dlocalhost port=3D5432 dbname=3Dxxx" with the user =
and pw passed
as separate parameters. This worked under 5.0.x.</FONT></SPAN></DIV>
<DIV><SPAN class=3D440550220-03022006><FONT face=3DArial
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D440550220-03022006><FONT face=3DArial size=3D2>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?</FONT></SPAN></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV> </DIV></BODY></HTML>
------=_NextPart_000_0015_01C628CB.5C3B9A80--
Re: PDO & PHP 5.1.2
--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 [at] ehpg.net
--Apple-Mail-7--370721846
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=ISO-8859-1
<HTML><BODY style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; =
-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).<DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>Gavin<DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV><BR><DIV><DIV>On Feb 3, =
2006, at 12:08 PM, John Mohr wrote:</DIV><BR =
class=3D"Apple-interchange-newline"><BLOCKQUOTE type=3D"cite"> =
<DIV><SPAN class=3D"440550220-03022006"><FONT face=3D"Arial" =
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:</FONT></SPAN></DIV> <DIV><SPAN class=3D"440550220-03022006"><FONT =
face=3D"Arial" size=3D"2"></FONT></SPAN>=A0</DIV> <DIV><SPAN =
class=3D"440550220-03022006"><FONT face=3D"Arial" =
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.</FONT></SPAN></DIV> <DIV><SPAN class=3D"440550220-03022006"><FONT =
face=3D"Arial" size=3D"2"></FONT></SPAN>=A0</DIV> <DIV><SPAN =
class=3D"440550220-03022006"><FONT face=3D"Arial" size=3D"2">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?</FONT></SPAN></DIV> <DIV><FONT face=3D"Arial" =
size=3D"2"></FONT>=A0</DIV> <DIV>=A0</DIV></BLOCKQUOTE></DIV><BR><DIV> =
<DIV>Gavin M. Roy</DIV><DIV>800 Pound Gorilla</DIV><DIV><A =
href=3D"mailto:gmr [at] ehpg.net">gmr [at] ehpg.net</A></DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV> =
</DIV><BR></DIV></DIV></BODY></HTML>=
--Apple-Mail-7--370721846--