php7报错 ”Uncaught Error: Class 'mysqli' not found“解决办法
2022-07-28 15:20:24
103
{{single.collect_count}}

检查以下几点: 

1、去掉php.ini中“extension=php_mysqli.dll”前面的分号

2、php.ini中extension_dir定位到自己php下的ext文件夹,默认为相对位置:extension_dir = "ext",需修改为绝对位置,即extension_dir = "d:/php7/ext"

3、以上完成后,需重启apache服务器

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}