I had uncommented the 'extension=php_mysqli.dll' in the PHP config file but I'm still getting the error message that my mySQLi extension is missing. What else do I verify?
问题:
回答1:
After restarting your web service, check PHP info:
phpinfo();
Does the extension appear there? If so, it loaded correctly. If not, you are likely missing the DLL, or have the wrong extension path.
Look for something like this:
回答2:
For anyone else using ubuntu. I ran into this problem on a fresh ubuntu installation. I solved it by adding this line to php.ini.
extension=mysqli.so
My php.ini was located @ /etc/php5/apache2/php.ini
回答3:
I was also getting the same error while clicking on phpmyadmin and tried all possible solns povided in google. i tried with wamp and then reinstalling xamp.neither didnt and looked at the php.ini file.but everything was perfect. Later i realised i was selecting google chrome as my default browser while installing xamp. but then i tried opening localhost with Internet Explorer and everyhtng was fine.
Thanks Sobbosanchi
回答4:
Was on this problem for hours...
Solved it by changing extension_dir = "ext"
to extension_dir = "C:/PHP-5.5.13/ext"
Seems like it doesn't like relative pathing...