php.ini擴充開了,為什麼找不到mysql模組,無法串連mysql

來源:互聯網
上載者:User
php.ini擴充開了,為什麼找不到mysql模組,無法串連mysql啊
如題

mysql也是可以串連的

mysql> use test
Database changed
mysql> source e:/sql/DB.SQL;
Query OK, 0 rows affected (0.03 sec)



php.ini裡也開啟了

;
;extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_fileinfo.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_intl.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_exif.dll ; Must be after mbstring as it depends on it
extension=php_mysql.dll
;extension=php_mysqli.dll
;extension=php_oci8.dll ; Use with Oracle 10gR2 Instant Client
;extension=php_oci8_11g.dll ; Use with Oracle 11gR2 Instant Client
;extension=php_openssl.dll
;extension=php_pdo_firebird.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_pspell.dll
;extension=php_shmop.dll



phpinfo();顯示裡 只有mysqld:

mysqlnd

mysqlndenabled
Versionmysqlnd 5.0.10 - 20111026 - $Id: e707c415db32080b3752b232487a435ee0372157 $
Compressionsupported
SSLsupported
Command buffer size4096
Read buffer size32768
Read timeout31536000
Collecting statisticsYes
Collecting memory statisticsNo
Tracingn/a
Loaded pluginsmysqlnd,example,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password
API Extensionsno value

mysqlnd statistics
bytes_sent

分享到:


------解決方案--------------------
extension=php_mysqli.dll

------解決方案--------------------
phpinfo();同時也顯示了使用的php.ini在哪裡
請檢查是否與你修改的一致
------解決方案--------------------
  • 相關文章

    聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.