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.
Specific steps:
(Recommended tutorial: php graphic tutorial)
Open first php.ini configuration file, search for php_mysqli.dll;
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;
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!