无为清净楼资源网 Design By www.qnjia.com

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,php,mysqli的安装,php,mysqli扩展安装问题解决办法

无为清净楼资源网 Design By www.qnjia.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
无为清净楼资源网 Design By www.qnjia.com