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个回答



我在这个家伙的帮助下想出了问题。</ p>

https://wordpress.org/support / topic / your-php-installation-appear-to-be-mysql-#post-253130 </ p>

我只需复制libmysql.dll文件 进入system32文件夹。</ p>
</ div>

展开原文

原文

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.

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐