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 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘