如何使用wampserver激活mysqli? [英] How do I activate mysqli with wampserver?

查看:236
本文介绍了如何使用wampserver激活mysqli?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我花了超过6个小时尝试连接到phpMyAdmin,如果有的话,我会拔掉头发.

I've spent over 6 hours trying to connect to phpMyAdmin, and would be pulling out my hair if I had any.

我下载了wampserver,并且一直在处理问题.解决了其中三个问题后,我终于得到phpMyAdmin上拉,但现在却出现了这个错误:

I downloaded wampserver, and have been dealing with issues. After solving about three of them, I finally got phpMyAdmin to pull up, but now it is giving me this error:

The mysqli extension is missing. Please check your PHP configuration. <a href="Documentation.html#faqmysql" target="documentation"><img src="themes/dot.gif" title="Documentation" alt="Documentation" class="icon ic_b_help" /></a>

我阅读了很多其他解决此问题的方法,并尝试了它们.也就是说,常见的答案似乎是取消对mysqli和其他一些扩展的注释,这是我已经完成的.

I read a lot of the other solutions to this problem and have tried them. Namely the common answer seems to be to uncomment mysqli and a couple other extensions, which I have done.

经过数小时的尝试不同的解决方案,我非常困惑,可以肯定地使用一些具体的答案(如果有的话).

After hours of trying different solutions, I am pretty stuck and could definitely use some specific answers if any are available.

我正在看别人的代码,我注意到他们的配置文件与我的不同,而当他们正常工作时.

I was looking at someone else's code, and I noticed that their config file was different then mine when they got it working.

我的网站链接到Windows,而他们的网站链接到他们的php.ini. 这可能是问题所在,如果是,该如何解决?

Mine is linked to Windows, while theirs to their php.ini. Is this potentially the problem, and if so how do I change it?

这是我的:

这是他们的:

此外,我可以通过托管运行phpMyAdmin,但是我需要在localhost上运行php.甚至需要phpMyAdmin来做到这一点吗?我加载了一个文件,结果变成空白,甚至没有发布代码或任何东西,所以这就是为什么我认为我需要先弄乱phpMyAdmin的原因.

Also, I can run phpMyAdmin through my hosting, but I need to run php on my localhost. Is phpMyAdmin even needed to do this? I loaded a file and it came up blank, without even posting the code or anything, so this is why I assumed I needed to mess with phpMyAdmin first.

推荐答案

有两次安装php的机会.如果不是,则检查php.ini文件是否正在加载mysqli扩展名.

There is a chance that there two installations of php. If not,then check that php.ini file is loading mysqli extension.

单击系统任务栏中的图标,转到PHP-> PHP Extensions并确保已选中

click on the icon in the system tray, go to PHP -> PHP Extensions and make sure it is checked

否则请在此行取消注释,进入php.ini文件

else go to php.ini file any uncomment this line

extension=php_mysqli.dll

这篇关于如何使用wampserver激活mysqli?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆