wamp cannot load mysqli extension

前端 未结 18 2095
悲哀的现实
悲哀的现实 2021-01-11 10:16

WAMP installed fine, no problems, BUT...

When going to phpMyAdmin, I get the error from phpMyAdmin as follows:

Cannot load mysqli extension. Please c         


        
相关标签:
18条回答
  • 2021-01-11 10:41

    I had the same problem. I had WAMP server installed. All was working fine. Then one day I restarted my computer and it just stopped working! I tried desperately going through all help posts and doing them but nothing worked.

    What they usually suggest you do is, first go to your php.ini file and make sure your 'extension_dir' is properly set. Then to make sure these two lines are not commented (remove the ; infront): extension=php_mysql.dll extension=php_mysqli.dll

    Then some suggested that I download fresh copies of these two files but none worked. I also tried uninstalling everything (php/mysql/apache) and reinstalled fresh copies of WAMP server several times but with no luck.

    Finally I managed to find an alternative solution. I switched to 'easyphp' (http://www.easyphp.org/). This is something very similar to WAMP. First I made backups of my sql databases so I can reload them on the new installation.

    Then I installed 'easyphp' and everything seems to work fine. I reloaded my sql databases from my backup and now things are back to normal.

    I hope someone suffering from a similar prob. will find this useful. If someone has really found a fix to make WAMP server work. Pls do be kind enough to post it here so many will benefit.

    0 讨论(0)
  • 2021-01-11 10:45

    I had path variable in windows set to some random version of php.

    The fix was to update it and set it to the folder within my wampserver installation:

    C:\wamp64\bin\php\php5.6.38
    

    Then I realized this is wrong also for my specific case, and I should actually be running the script from within vagrant. Live and learn.

    0 讨论(0)
  • 2021-01-11 10:47

    I had the same error. When I increased the script memory size and enabled E_ALL then restarted the server, I got that error in phpmyadmin. All I had to do to fix it was restart my computer!

    0 讨论(0)
  • 2021-01-11 10:48

    I had this issue because of a different reason:

    Check the PHP Error Log(Get from the Wamp Tray -> PHP -> PHP Error Log. I had a syntax error in the php.ini file while I was editing the file. Check the log and clear the error. This will open your PhpMyAdmin properly.

    0 讨论(0)
  • 2021-01-11 10:52

    Just add in your php.ini:

    [PHP_MCRYPT]
    extension=php_mcrypt.dll
    [PHP_MYSQL]
    extension=php_mysql.dll
    [PHP_MYSQLI]
    extension=php_mysqli.dll
    
    0 讨论(0)
  • 2021-01-11 10:53

    Also setup the mysql password:

    SET PASSWORD FOR root@localhost=PASSWORD('your_password');
    

    And the phpmyadmin mysql password in config.inc.php:

    $cfg['Servers'][$i]['password'] = 'your_password';
    
    0 讨论(0)
提交回复
热议问题