How do I activate mysqli with wampserver?

2019-08-06 14:01发布

问题:

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

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>

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.

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

Here is mine:

Here is theirs:

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.

回答1:

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

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

else go to php.ini file any uncomment this line

extension=php_mysqli.dll