时间: 2020-09-19|61次围观|0 条评论

安装完lnmp,php连接数据库时提示undefined function mysqli_connect()

这是因为在/usr/local/php/lib/php/extensions/no-debug-non-zts-20151012/文件夹中

没有安装对应的扩展库

/root/lnmp1.3

cd php-7.0.7/ext/pdo_mysql/
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config

make && make install 


/root/lnmp1.3

cd php-7.0.7/ext/mysqli/
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install 

原文链接:https://blog.csdn.net/linweidong/article/details/77602129

本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。

本博客所有文章如无特别注明均为原创。
复制或转载请以超链接形式注明转自起风了,原文地址《lnmp安装mysql扩展库
   

还没有人抢沙发呢~