Home>Article>Backend Development> How to add mysqli extension to PHP

How to add mysqli extension to PHP

王林
王林 Original
2019-09-20 17:53:18 4746browse

How to add mysqli extension to PHP

PHP enables mysqli extension

Call to undefined function mysqli_connect(). To solve this problem, you need to enable the mysqli extension.
Steps:
1. Search php_mysqli.dll in php.ini

How to add mysqli extension to PHP

##2 , set the extension_dir command

How to add mysqli extension to PHP

##Search extension_dir

in php.ini

How to add mysqli extension to PHP(

Note that you cannot fill in the relative path here. In my environment, the relative path is invalid when testing

)

extension_dir = “G:/web/php7.1/ext”

Check G:/web/php7.1 Does php_mysqli.dll exist in the /ext installation path (if it does not exist, the PHP installation package may be damaged, please download it again)

3. Open successfully

How to add mysqli extension to PHPRecommended tutorial:

PHP video tutorial

The above is the detailed content of How to add mysqli extension to PHP. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn