PhpMyAdmin lacks the mysqli extension. Check the PHP configuration solution _ PHP Tutorial

Source: Internet
Author: User
PhpMyAdmin lacks the mysqli extension. Check the PHP configuration solution. PhpMyAdmin lacks the mysqli extension. Check the PHP configuration solution. For more information, see. PhpMyAdmin lacks the mysqli extension. Check the PHP configuration solution: Lack of phpMyAdmin and mysqli extension. Check the PHP configuration solution. For more information, see.

PhpMyAdmin lacks the mysqli extension. Check the PHP configuration solution:
The mysqli extension is missing. Check the PHP configuration.

Open your php. ini-> in the C: WINDOWS directory.
Find

The code is as follows:
; Extension = php_msql.dll
; Extension = php_mssql.dll
Extension = php_mysql.dll
Extension = php_mysqli.dll

To enable the extension, remove the semicolon before this line. restart Apache or IIS.


Solution:
1. check whether the php ext directory contains the php_mysqli.dll file.
If yes, continue with the following steps. Reinstall php if no
2. open php. ini and find

The code is as follows:
; Extension = php_mysqli.dll

Remove the semicolon ";" and change it

The code is as follows:
Extension = php_mysqli.dll

3. find

The code is as follows:
; Extension_dir = "./ext"

Remove the semicolon ";" and change it to (the ext directory relative to the php installation path)
Extension_dir = "e: phpext"
E: php is the directory for storing php

4. copy php. ini to c: windows.

5. copy libmysql. dll to the System32 directory under Windows (this is critical)

6. restart IIS (not a website)

Run iisreset/RESTART in cmd

If the above method does not work, you can refer to the following method for operations

Step 1: output phpinfo () to check whether the MySQL module is successfully loaded. if the MySQL module is successfully loaded, you will be confused. otherwise, check the second step,

Why does phpinfo () have no mysql module in IIS?
The original php was installed by. msi, and all of them were re-installed in the form of a compressed package.
According to the configured php. ini, copy it to winnt, and copy libmysql. dll to system32.
Then the test is successful...
Step 2: Check whether the settings of extension_dir are correct.
Step 3: Check whether the libmysql. dll file is copied to c: windowssystem32.

1. the Mysql database is not correctly installed, and Mysql-related services are not started in the system service (please check the correct method for installing Mysql)


2. libmysql is missing in the system32 (C: windowssystem32) Directory of the system. dll file. the solution is to find libmysql in the php directory. dll, and libmysql. copy the dll to the C: windowssystem32 directory and restart the Web service.


3. in the C: windows directory, php. in the INI file, the previous ";" in "; extension = php_mysql.dll" is not removed, so the corresponding function cannot be used. the solution is to open php. ini file


4. the Mysql Directory has no read permission. the correct directory permission is as follows:
Full administrator control
Full system control
User reading and running
You can delete all other user permissions (which can be retained, but the security is not high. we recommend that you delete them), and then restart MYsql and Web services.

The http://www.bkjia.com/PHPjc/632182.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/632182.htmlTechArticlephpMyAdmin lacks the mysqli extension. Check the PHP configuration solution. For more information, see. PhpMyAdmin lacks the mysqli extension. Check the PHP configuration solution: missing...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.