php如何開啓mysqli擴充套件

2020-08-12 16:00:30

php開啓mysqli擴充套件的方法:首先開啓php.ini組態檔;然後找到【extension=php_mysqli.dll】,並取消註釋;最後找到【extension_dir】,設定ext路徑即可。

具體步驟:

(推薦教學:)

首先開啓php.ini組態檔,搜尋php_mysqli.dll;

197a50350a9102bbdd06556f7e1e620.png

然後設定extension_dir指令

; 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指令。

(視訊教學推薦:)

最後在php.ini裏面搜尋extension_dir;

a0713b74e26b2b676db8933fbe6eb40.png

extension_dir = 「G:/web/php7.1/ext」

檢查G:/web/php7.1/ext安裝路徑是否存在php_mysqli.dll(如果不存在應該是PHP安裝包損壞,請重新下載)。

完成以上步驟就開啓成功了。

以上就是php如何開啓mysqli擴充套件的詳細內容,更多請關注php中文網其它相關文章!