douchun3680 2017-12-01 16:25
浏览 251

无法启用mysqli扩展 - PHP 7.1.12,无法连接到db

I have installed LAMP (everything through dnf/yum) on Fedora 27 but for some reason mysqli extension is disabled or not installed (which i doubt) When I'm trying to open phpMyAdmin i got this error:

phpMyAdmin - Error

The mysqli extension is missing. Please check your PHP configuration. See our documentation for more information.

I've read that mysqli should be included in php package, however there is no

extension=php_mysqli.dll

in php.ini (simply adding this line to file doesn't work either) How can I enable mysqli then?

  • 写回答

1条回答 默认 最新

  • dqsong2010 2017-12-01 16:27
    关注

    .dll files are for windows, you want .so files. You want something like this:

    extension = mysqli.so
    

    You may also have to specify the module directory:

    extension_dir = /path/to/your/php/extensions/no-debug-non-zts-whatever/
    

    Note, depending on your server configuration, you may also have to restart your web and/or PHP service.

    评论

报告相同问题?

悬赏问题

  • ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效
  • ¥15 高德地图点聚合中Marker的位置无法实时更新
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题