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 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥15 stable diffusion
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误