Home  >  Article  >  Backend Development  >  How to install php pdo extension

How to install php pdo extension

藏色散人
藏色散人Original
2020-07-09 13:20:253960browse

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”.

How to install php pdo extension

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn