dongqianzhan8325 2015-08-25 17:22
浏览 264
已采纳

PHP MySQL,PHP无法识别MySQL模块已安装

So I've installed PHP v5.2.9 in order to run WordPress. When I go visit the domain, I get the following error:

"your php installation appears to be missing the mysql extension which is required by wordpress"

In my php.ini I have the following lines uncommented:

extension=php_mysql.dll
extension=php_mysqli.dll

The extension_dir which I've double check that it actually exists is:

C:\PHP\ext

My php.ini is loaded from:

C:\WINDOWS\php.ini

When I run <? phpinfo() ?> in my test.php file everything is just as you see it above with the only exception being, MySQL or MySQLi aren't listed. Under "Additional Modules" there is nothing loaded.

PHP not recognizing MySQL installation

I've read this post where the comments pretty much say the wrong php.ini file is being loaded/modified. This doesn't appear to be the case. I've editing the php.ini file located in the C:\WINDOWS\ directory. When I change the extension_dir and restart the server. the changes take affect. The only thing that doesn't seem to work is adding modules.

Just an FYI I'm running:

PHP 5.2.9

Windows Server 2003

IIS v6.0

And MySQL is in fact installed and works.

Thanks in advance for any help!

  • 写回答

1条回答 默认 最新

  • doudoulb1234 2015-08-25 19:19
    关注

    I figured out the problem with the help of this guy.

    https://wordpress.org/support/topic/your-php-installation-appears-to-be-missing-the-mysql-#post-253130

    I just needed to copy the libmysql.dll file into the system32 folder.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥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,如何解決?