我是靠谱客的博主 爱撒娇翅膀,这篇文章主要介绍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的实现步骤及报错解决办法的全部内容,更多相关php安装扩展mysqli内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(167)

评论列表共有 0 条评论

立即
投稿
返回
顶部