Home >Backend Development >PHP Problem >How to install mysqli extension in php
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.
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!