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.

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

报告相同问题?

悬赏问题

  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮