2012-08-29 71 views
3

通過在互聯網上看到建議我試圖將我所有的查詢轉換爲mysqli。mysqli不能在xampp窗口中工作

但mysqli的是不是在我xampp.I工作檢查我的PHP文件夾,並有一個php_mysqli.dll文件...它仍然不工作

在此先感謝

回答

5

你有它宣佈到PHP .ini加載它?如果沒有,在php.ini中嘗試找到它並添加php_mysqli.dll

;;;;;;;;;;;;;;;;;;;;;; 
; Dynamic Extensions ; 
;;;;;;;;;;;;;;;;;;;;;; 

; If you wish to have an extension loaded automatically, use the following 
; syntax: 
; 
; extension=modulename.extension 
; 
; For example, on Windows: 
; 
; extension=msql.dll 
; 
; ... or under UNIX: 
; 
; extension=msql.so 
; 
; ... or with a path: 
; 
; extension=/path/to/extension/msql.so 
; 
; If you only provide the name of the extension, PHP will look for it in its 
; default extension directory. 
; 
; 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= php_mysqli.dll 
+0

應用設置後重新啓動您的xampp。 – Furry

+0

我已經檢查過兩次,沒關係:'extension = php_mysqli.dll',我試過了你的建議:'extension_dir =「C:\ xampp \ php \ ext」'我重新啓動了Apache服務,但是仍然沒有運氣! 我已驗證它是'PHPMyAdmin'使用的這個php.ini文件,但我仍然收到''您正在使用PHP已棄用的'mysql'擴展名,它不能處理多個查詢。執行一些存儲例程可能會失敗!請使用改進的'mysqli'擴展名來避免任何問題。「'其他建議? – Metafaniel

+0

什麼xampp版本是你 – Furry

4

轉到目錄phpMyAdmin,發現有一個與名字config.inc.php一個文件,打開該文件,並找到一個線有如下:
$cfg['Servers'][$i]['extension'] = 'mysql';
只是將mysql改爲mysqli

0

可能從負載會阻止msqli DLL可以是用戶在你的本地網絡服務器的權利問題,確保\用戶可以讀取ext文件夾的另一件事,這對我來說

0

什麼工作,我認爲你應該使用XAMPP 1.8.3-1,XAMPP 1.8.2-2,XAMPP 1.8.1。 因爲這些xampp版本默認也支持Mysqli。