首页 > 语言 > PHP > 正文

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

2024-05-05 00:00:15
字体:
来源:转载
供稿:网友

php/216854.html">php/40478.html">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... yeschecking whether to enable embedded MySQLi support... nomysql_config not foundconfigure: 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教程频道。
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选