Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help installing PDO_mysql driver php 5

Status
Not open for further replies.

unomateo

IS-IT--Management
May 9, 2006
38
US
I trying to learn PDO and I think I need to install the driver for mysql.

When I run this command: print_r(PDO::getAvailableDrivers());

I get sqlite2 as my only driver.

I tried pecl install pdo_mysql but it fails at phpize?

any help is appreciated

fedora core 5, apache 1.3, php5.1.4, mysql 4.x

 
they should be dynamically loadable (although have not tried myself)

as a first start you should include this in your php.ini

Code:
extension=php_pdo_mysql.dll

you will probably also have to recompile php with pdo_mysql

the php manual has comprehensive instructions

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top