centos php7.2 安装mysqli扩展

遇到问题

部署tp(php) 项目 报错
没有 mysqli 扩展
直接上解决方法

php -v

在这里插入图片描述

安装mysqli

yum install php72w-mysqli
### 版本是7.2.24  所以安装 72 如 你是 5.6.*  则 是 56w

得出结论:安装php扩展 只需 php72w中 的 72 是 自己对应的版本 -mysqli mysql替换为扩展名字 即可安装成功

重启 apache

systemctl restart httpd

在这里插入图片描述
ok~

发布了34 篇原创文章 · 获赞 1 · 访问量 7408

猜你喜欢

转载自blog.csdn.net/chihouzi/article/details/103864684
今日推荐