Hai guys,

How to enable pdo_mysql?

Download and untar the installer pdo_mysql.

cd /usr/src

wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz

tar -xvzf PDO_MYSQL-1.0.2.tgz

cd PDO_MYSQL-1.0.2

phpize && ./configure && make && make install

/usr/local/lib/php/extensions/no-debug-non-zts-20060613

Now edit your php.ini file.

vi /usr/local/lob/php.ini

contrl w and search for: extension_dir and put the above path there.

extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613"

move down and put the extensions for pdo_mysql and pdo in the "dynamic extension" set

extension=pdo.so
extension=pdo_mysql.so

save the file and exit.

check if the module is loaded in php.ini.

php -m

pdo_mysql should show up now

root@server []# php -m | grep pdo_mysql
pdo_mysql
root@server []#