1. 程式人生 > >Class ‘mysqli’ not found in解決辦法

Class ‘mysqli’ not found in解決辦法

數據 出現 代碼 mysq name l數據庫 dll 數據庫 .dll

在使用

$conn = new mysqli($servername, $username, $password);

連接msql數據庫的時候出現錯誤:【Fatal error: Class ‘mysqli’ not found in xxx……】,但是代碼中可以追蹤到mysqli的類。

解決辦法:

1、windows服務器。

在php.ini裏面去掉【extension=php_mysqli.dll】前面的";",然後重啟服務器。

Class ‘mysqli’ not found in解決辦法