导读安装phpMyAdmin时,可能会出现一系列的报错提示,今天爱站技术频道小编带给大家php安装扩展mysqli的实现步骤及报错解决办法,需要的朋友可以在下文做个参考哟。php安装扩展mysqli的实现步骤及报错解决办法terminal#c

安装phpMyAdmin时,可能会出现一系列的报错提示,今天爱站技术频道小编带给大家php安装扩展mysqli的实现步骤及报错解决办法,需要的朋友可以在下文做个参考哟。

php安装扩展mysqli的实现步骤及报错解决办法

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 

报错:

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

加入配置

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

编译通过

将生成的mysqli.so配置加入php.ini中

extension=mysqli.so

本文是爱站技术频道小编带给大家的php安装扩展mysqli的实现步骤及报错解决办法,我们可以根据自己的实际情况进行选择哦。


原文链接:https://js.aizhan.com/develop/php/11174.html
如有疑问请与原作者联系