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 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog