Home  >  Article  >  Backend Development  >  Implementation steps and error resolution of mysqli extension installation in php

Implementation steps and error resolution of mysqli extension installation in php

黄舟
黄舟Original
2017-09-25 09:11:553267browse

This article mainly introduces the implementation steps of PHP installation extension mysqli and the relevant information on error resolution. I hope this article can help everyone. Friends in need can refer to it

Recommended related mysql video tutorials: "mysql tutorial"

php installation and extension mysqli implementation steps and error resolution

terminal

#cd php-5.3.6/ext/mysqli 
#/usr/local/webserver/php/bin/phpize 
#./configure --with-php-config=/usr/local/webserver/php/bin/php-config 
#make 
#make instal

Error report:

checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... no
mysql_config not found
configure: error: Please reinstall the mysql distribution

Add configuration

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

Compile passed

Add the generated mysqli.so configuration to php.ini

extension=mysqli.so

The above is the detailed content of Implementation steps and error resolution of mysqli extension installation 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