Home >Backend Development >PHP Tutorial >Implementation steps and error resolution of mysqli extension installation in php
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!