Home  >  Article  >  Backend Development  >  How to enable mysqli extension in php

How to enable mysqli extension in php

王林
王林Original
2020-08-12 14:31:547169browse

php method to open the mysqli extension: first open the php.ini configuration file; then find [extension=php_mysqli.dll] and uncomment it; finally find [extension_dir] and set the ext path.

How to enable mysqli extension in php

Specific steps:

(Recommended tutorial: php graphic tutorial)

Open first php.ini configuration file, search for php_mysqli.dll;

How to enable mysqli extension in php

and then set the extension_dir directive

; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5+)
; extension folders as well as the separate PECL DLL download (PHP 5+).
; Be sure to appropriately set the extension_dir directive.
;一定要适当地设置extension_dir指令。

(Video tutorial recommendation: php video Tutorial)

Finally search extension_dir in php.ini;

How to enable mysqli extension in php

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

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

After completing the above steps, it will be activated successfully.

The above is the detailed content of How to enable mysqli extension in 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