On 4/29/05, Greg Donald <[EMAIL PROTECTED]> wrote:
> On 4/28/05, Dan Scott <[EMAIL PROTECTED]> wrote:
> > So three things:
> > 1. If you print the results of get_loaded_extensions(), you'll see
> > that pdo turns up as 'PDO', but you're looking for 'pdo' -- so the
> > result of your first if() is FALSE.
> 
> Yup.  Confusing that the base extension is PDO, but the drivers are
> lowercase like pdo_mysql for example.  I see what's going on now.

That is not entirely true; PDO_ODBC, for example, comes up as
"PDO_ODBC". Unfortunately I don't have mysql-devel installed so I
can't confirm your report for PDO_MYSQL.

> > 2. You then try loading pdo.so again, but it's already loaded by
> > php.ini, therefore you get the Warning and your own error message.
> 
> Yup.  :)
> 
> > 3. You plan on connecting to MySQL, but don't appear to have loaded
> > pdo_mysql.so anywhere. So you need to fix that.
> 
> I didn't realize I had to build pdo_mysql.so seperately.  Thanks.  In
> the manual where it says "The following drivers currently implement
> the PDO interface:" made me thing I got them all when I built PDO.

The manual also says (in the install instructions):

 "Follow the same steps to install and enable the PDO drivers of your choice."

> Now that I got all that worked out MySQL refuses my dsn string:

Sorry, can't help you there...

Dan

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to