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 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用