The mysqli extension is missing. Check your PHP configuration

I looked through all the forums that might find relevant for this question, and my problem is still not working. I have apache2.2 with php5, phpMyAdmin and MySQL. I uncommented the extension, I checked my phpinfo() , and mysqli did not appear. My configuration directory is where it should be, and it still doesn't load.

+7
source share
7 answers

I know this was recently, but I came across this and followed the other answers here, but to no avail, I found a solution on this question ( Question about stop stream )

Essentially, you just had to edit the php.ini file (mine was found in c: \ xampp \ php \ php.ini) and uncommented these lines ...

 ;extension=php_mysql.dll ;extension=php_mysqli.dll ;extension=php_pdo_mysql.dll 

After restarting apache, everything worked as expected.

+5
source

This article can help you configure PHP with MySQL for Apache 2 or IIS on Windows . See the section β€œConfiguring PHP and MySQL under Apache 2,” paragraph 3:

 extension_dir = "c:\php\extensions" ; FOR PHP 4 ONLY extension_dir = "c:\php\ext" ; FOR PHP 5 ONLY 

You must uncomment the extension_dir extension line and set it to an absolute path to the PHP extension directory.

+3
source
  1. In the php.ini file, this line: extension = MySQLi

  2. Replace with: extension = "C: \ PHP \ int \ php_mysqli.dll"

  3. Restart Apache

+3
source

Copy the libmysql.dll file from the PHP installation folder to the Windows folder.

+1
source

I searched for several hours and no one could help me. I did a simple thing to solve this problem. (WINDOWS 10 x64)

Follow this:

1 - go to the path php_mysqli.dll (in my case: C: / xampp / php / ext);

2 - Move php_mysqli.dll to the previous folder (C: / xampp / php);

3 - Open php.ini and find the line: "extension: php_mysqli.dll";

4 - Go to the path where your file is located: extension = "C: \ xampp \ php \ php_mysqli.dll";

5 - restart the application (wampp, xampp, etc.) and start the Apache server;

The problem was in the ext / php_mysqli.dll path, I tried changing the line to extension = "C: \ xampp \ php \ ext \ php_mysqli.dll", but it did not work.

+1
source

Today I ran into this problem, and in the end I realized that it was a comment on the line before the mysql dll that caused 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 

In addition to deleting half-columns, you also need to delete the comment line that appeared after php_exif.dll. It leaves you with

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

This solves the problem in my case.

0
source

I just copied my php_myslqli.dll file from the ert folder back to the php folder and it worked for me after restarting Apache and MySQL from the control panel

0
source

Source: https://habr.com/ru/post/1413102/


All Articles