php pdo extension installation method: first download the pdo installation package to the specified directory; then decompress it and enter the decompressed package; then find the php version that requires the pdo extension; finally execute the command "/www/wdlinux /phps/72/bin/phpize”.
Install php pdo extension plug-in
1. Download the pdo installation package to the specified directory
wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz
2. Unzip
tar -zxvf PDO_MYSQL-1.0.2.tgz
3. Enter the decompressed package
cd PDO_MYSQL-1.0.2.tgz
Find the php version phpize that requires pdo extension and execute the following command—according to your own php directory configuration
/www/wdlinux/phps/72/bin/phpize
Execute the following command:
./configure --with-php-config=/www/wdlinux/phps/72/bin/php-config --with-pdo-mysql=/www/wdlinux/mysql
For more related articles, please visit PHP Chinese website!
The above is the detailed content of How to install php pdo extension. For more information, please follow other related articles on the PHP Chinese website!