The method for php to install the mysqli extension is: 1. Find the mysqli directory under the ext directory and execute the [/usr/local/php7.2/bin/phpize] command; 2. Configure the system environment; 3. Execute [make && make install] command to compile and install.
Installation steps:
(Learning video sharing: java video tutorial)
1. Find mysqli
in the php7.2 ext directory. 2. Enter
/usr/local/php7.2/bin/phpize
3. Execute in the mysqli folder
./configure --with-php-config=/usr/local/php/bin/php-config --with-mysqli=/usr/bin/mysql_config
4. make
5. make install
Possible problems during the installation process:
Solution:
1. If mysql_config cannot be found, it may be that mysql-devel# is not installed.
##1. You need to install the source of MySQL2. At this time, the relevant repo of MySQL will appear in the /etc/yum.repos.d/ directory3. Execute the commandyum install mysql-devel
The above is the detailed content of What is the method to install mysqli extension in php. For more information, please follow other related articles on the PHP Chinese website!