douan2478 2011-08-08 23:12
浏览 153

我配置我的php.ini文件加载MySQL模块后,它没有出现在phpinfo()中,我无法调用MySQL函数

sorry if this is a really silly question. I googled a lot and nothing came up

I have this in my php.ini file:

extension_dir="C:\Program Files\PHP\ext"
enable_dl = on
extension=php_mysql.dll

when I call the phpinfo() function it says that there aren't any loaded modules.

I am using the latest version of apache, php and MySQL in a windows operating systems.

Also, I have used a WAMP server but I prefer having things separately and I want to learn how to do it

Thanks in advance

  • 写回答

1条回答 默认 最新

  • doushan2311 2011-08-08 23:15
    关注

    You need to enable the mysql extension itself in php.ini too. For example if you want to use mysqli, you need to add this to your php.ini file:

    extension=php_mysqli.dll
    

    also make sure that you have this dll file in your ext directory.

    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥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,如何解決?