Home > Backend Development > PHP Problem > How to install php pdo extension

How to install php pdo extension

藏色散人
Release: 2023-03-02 08:30:02
Original
4054 people have browsed it

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
Copy after login

2. Unzip

tar -zxvf PDO_MYSQL-1.0.2.tgz
Copy after login

3. Enter the decompressed package

cd PDO_MYSQL-1.0.2.tgz
Copy after login

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
Copy after login

Execute the following command:

./configure --with-php-config=/www/wdlinux/phps/72/bin/php-config --with-pdo-mysql=/www/wdlinux/mysql
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template