[PHP] PDO database drivers

2007-02-20 Thread Sandy Keathley
I upgraded PHP 5.2 = 5.2.1 and added PDO support.  It installed 
the SQLLITE driver by default.  I wanted to add the MYSQL driver.
I ran pecl install PDO_MYSQL and it failed with an autoconf error.

I then downloaded the driver from pecl and unpacked it, but there 
were no instructions on installing it, and there is no configure script.

Has anyone done this?

Thanks,

Sandy Keathley
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PDO database drivers

2007-02-20 Thread Jon Anderson

Sandy Keathley wrote:
I upgraded PHP 5.2 = 5.2.1 and added PDO support.  It installed 
the SQLLITE driver by default.  I wanted to add the MYSQL driver.

I ran pecl install PDO_MYSQL and it failed with an autoconf error.
  
It probably depends on how you're installing PHP. If you're using a 
distribution's built-in PHP support, there should be a PDO/mysql package 
or in Gentoo's case pdo and mysql use flags. If you're compiling from 
source, just add --with-pdo-mysql to your ./configure line.
I then downloaded the driver from pecl and unpacked it, but there 
were no instructions on installing it, and there is no configure script.

Why use pecl? It's built-in to PHP.

jon

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php