最新赞助活动温馨提示:自愿赞助服务器费用,学生和没有工作的整站资源免费下载!
头像

运维人员告诉你php中MySQL数据库i的扩展安装的实现步骤以及报错解决方案办法

来源:http://www.erdangjiade.com/topic/485.html 你好,世界。 2017-09-25 22:42浏览(16)

这篇文章主要介绍了 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的扩展安装的实现步骤以及报错解决办法的详细内容,更多请关注二当家的素材网其它相关文章!

评论0
头像

友情提示:垃圾评论一律封号 加我微信:826096331拉你进VIP群学习群

1 2