The mysqli extension is missing. Please check your PHP configuration

前端 未结 14 1537
盖世英雄少女心
盖世英雄少女心 2020-12-01 21:45

I have looked through all of the forums that I could find relevant to this question and my problem yet nothing works. I have apache2.2 with php5, phpMyAdmin, and MySQL. I ha

相关标签:
14条回答
  • 2020-12-01 22:07

    I encountered this problem today and eventually I realize it was the comment on the line before the mysql dll's that was causing the problem.

    This is what you should have in php.ini by default for PHP 5.5.16:

    ;extension=php_exif.dll       Must be after mbstring as it depends on it
    ;extension=php_mysql.dll
    ;extension=php_mysqli.dll
    

    Besides removing the semi-colons, you also need to delete the line of comment that came after php_exif.dll. This leaves you with

    extension=php_exif.dll      
    extension=php_mysql.dll
    extension=php_mysqli.dll
    

    This solves the problem in my case.

    0 讨论(0)
  • 2020-12-01 22:07

    Its an issue of extension directory. You need to change php extension directory manually to work this.

    If you are using AMPP Server, do the following

    Goto settings -> PHP -> Configuration

    in php7.3.ini Find, (Versions might change)

    extension_dir = "" , (Already having some path)

    and change value to

    extension_dir = "C:\Program Files\Ampps\php-7.3\ext"

    If you are using XAMP

    Goto XAMP Settings, Apache -> PHP.ini

    Find, extension_dir = in php.ini, and set path of the php extension folder of your local machine. See the below example.

    extension_dir = "C:\php\ext" (Check your path properly)

    0 讨论(0)
  • 2020-12-01 22:08

    Simply specify the directory in which the loadable extensions (modules) reside in the php.ini file from

    ; On windows:
    extension_dir="C:\xampp\php\ext"
    

    to

    ; On windows:
    ;extension_dir = "ext"
    

    Then enable the extension if it was disabled by changing

    ;extension=mysqli
    

    to

    extension=mysqli
    
    0 讨论(0)
  • 2020-12-01 22:10
    • In your Xampp folder, open php.ini file inside the PHP folder i.e xampp\php\php.ini (with a text editor).

    • Search for extension=mysqli (Ctrl+F), if there are two, look for the one that has been uncommented (without ";" behind)

    • Change the mysqli with the correct path address i.e extension=C:\xampp\php\ext\php_mysqli.dll.

    • On your Xampp control panel, stop and start apache and MySQL

    0 讨论(0)
  • 2020-12-01 22:10

    sudo apt-get install php7.2-mysql

    extension=mysqli.so (add this php.ini file)

    sudo service apahce2 restart
    

    Please use above commands to resolve mysqli-extension missing error

    0 讨论(0)
  • 2020-12-01 22:16

    I had the same problem and I solved it. You can solve it too if you follow these steps:

    1. you have to install PHP to C:/php or your current version locate it to this path and specify it as a system variable
    2. then open xampp program and click config and open php.ini and uncomment the following lines:

      extension=pdo_mysql
      extension=pdo_mysql
      extension=openssl
      
    0 讨论(0)
提交回复
热议问题