Home >Backend Development >PHP Problem >How to install mysqli extension in php

How to install mysqli extension in php

王林
王林Original
2020-11-04 14:58:136085browse

How to install mysqli extension in php: 1. Find mysqli in the ext directory; 2. Execute the [/usr/local/php7.2/bin/phpize] command; 3. Execute [make && make install] Command to compile and install.

How to install mysqli extension in php

The specific steps are as follows:

(Recommended tutorial: java video tutorial)

1. Find mysqli

2 in the php7.2 ext directory, enter

/usr/local/php7.2/bin/phpize

3, execute

./configure --with-php-config=/usr/local/php/bin/php-config --with-mysqli=/usr/bin/mysql_config

4 in the mysqli folder, execute the command

make

5. Execute the command

make install

Related recommendations:php training

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