Find pdo_mysql;<&order>Check whether there is any problem with the expansion package;<&order>Set the corresponding installation database path;<&order>Compile."/> Find pdo_mysql;<&order>Check whether there is any problem with the expansion package;<&order>Set the corresponding installation database path;<&order>Compile.">
search
HomeBackend DevelopmentPHP7How to install php7 pdo extension in yum

Yum method to install php7 pdo extension: 1. Execute the command "yum install autoconf -y"; 2. Find pdo_mysql; 3. Check whether there is any problem with the expansion package; 4. Set the corresponding installation database path; 5. Just compile it.

How to install php7 pdo extension in yum

The operating environment of this article: linux5.9.8 system, php7.2.7 version, Dell G3 computer

How to install php7 pdo extension with yum ? PHP7 installs the pdo_mysql extension

Because when I was compiling and installing php7.2.7, I didn't notice that pdo_mysql failed.

But it takes a long time to recompile and install php7.2.7.

Baidu, there is an autoconf for linux

yum install autoconf -y

Open the php installation package path and find pdo_mysql

Enter the folder

Check whether there is a problem with the expansion package

/datas/soft/php72/bin/phpize

Set the corresponding installation database path: (Here I use mariadb locally because the company’s test environment uses this)

./configure --with-php-config=/datas/soft/php72/bin/php-config --with-pdo-mysql=/datas/soft/mariadb/
make clean
make && make install

Compiled successfully, as shown below

Recommended: "PHP Video Tutorial"

The above is the detailed content of How to install php7 pdo extension in yum. 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

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Hot Topics