Implementation steps and error resolution of mysqli extension installation in php

黄舟
Release: 2023-03-16 11:12:01
Original
3279 people have browsed it

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
Copy after login

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
Copy after login

Add configuration

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

Compile passed

Add the generated mysqli.so configuration to php.ini

extension=mysqli.so
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!