Installing PDO_MYSQL on CentOS

Today, I would like to share on how to install pdo_MySQL FROM CentOS.

Basically, We will need to compile MySQL from our Apache.Run the command as below to get it updated.

yum install php-devel php-pear mysql-devel httpd-devel
pecl install pdo
PHP_PDO_SHARED=1 pecl install pdo_mysql

Open your php.ini file and insert the line as below:

Restart the Apache services.