這篇文章主要介紹了 php安裝擴展mysqli的實現步驟及報錯解決辦法的相關資料,希望通過本文能幫助到大家,需要的朋友可以參考下
php安裝擴展mysqli的實現步驟及報錯解決辦法
terminal
- #cd php-5.3.6/ext/mysqli
- #/usr/local/webserver/php/bin/phpize
- #./configure --with-php-config=/usr/local/webserver/php/bin/php-config
- #make
- #make instal
報錯:
- checking for MySQLi support... yes
- checking whether to enable embedded MySQLi support... no
- mysql_config not found
- configure: error: Please reinstall the mysql distribution
加入配置
#./configure --with-php-config=/usr/local/webserver/php/bin/php-config --with-mysqli=/usr/local/mysql/bin/mysql_config
編譯通過
將生成的mysqli.so配置加入php.ini中
extension=mysqli.so
新聞熱點
疑難解答