当前位置:Gxlcms > PHP教程 > php.ini扩充开了,为什么找不到mysql模块,无法连接mysql

php.ini扩充开了,为什么找不到mysql模块,无法连接mysql

时间:2021-07-01 10:21:17 帮助过:11人阅读

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

mysqlnd enabled
Version mysqlnd 5.0.10 - 20111026 - $Id: e707c415db32080b3752b232487a435ee0372157 $
Compression supported
SSL supported
Command buffer size 4096
Read buffer size 32768
Read timeout 31536000
Collecting statistics Yes
Collecting memory statistics No
Tracing n/a
Loaded plugins mysqlnd,example,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password
API Extensions no value

mysqlnd statistics
bytes_sent

分享到:


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

------解决方案--------------------
phpinfo();同时也显示了使用的php.ini在哪里
请检查是否与你修改的一致
------解决方案--------------------

人气教程排行