首頁  >  文章  >  後端開發  >  php沒有php mysql.dll怎麼辦

php沒有php mysql.dll怎麼辦

藏色散人
藏色散人原創
2020-08-31 10:15:253174瀏覽

php沒有php mysql.dll的解決方法:先去github上去下載原始碼;然後執行phpize產生設定檔;接著透過「make &&make install」執行編譯和安裝;最後修改設定檔「php.ini ”即可。

php沒有php mysql.dll怎麼辦

推薦:《PHP影片教學

php.ini找不到extension=php_mysql.dll是設定錯誤造成的,解決方法如下:

1、先在百度搜尋swoole。

php沒有php mysql.dll怎麼辦

2、打開官網去github上去下載原始碼。

php沒有php mysql.dll怎麼辦

3、複製連結位址同linux指令進行下載。

php沒有php mysql.dll怎麼辦

4、下載完成以後直接解壓縮檔包,tar -zxvf filename.tar.gz。

php沒有php mysql.dll怎麼辦

5、進入剛剛解壓縮的檔案包裡面,執行phpize產生設定檔。

php沒有php mysql.dll怎麼辦

6、執行./configure產生變異檔。

php沒有php mysql.dll怎麼辦

7、make &&make install 執行編譯和安裝。

php沒有php mysql.dll怎麼辦

8、修改設定檔php.ini。

php沒有php mysql.dll怎麼辦

9、最後重啟httpd去查看phpinfo()是否支援這個擴展,就完成了。

php沒有php mysql.dll怎麼辦

以上是php沒有php mysql.dll怎麼辦的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn