Home >Backend Development >PHP Tutorial > php.ini扩充开了,为什么找不到mysql模块,无法连接mysql

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

WBOY
WBOYOriginal
2016-06-13 12:41:59879browse

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

mysql也是可以连接的

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


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



phpinfo();显示里 只有mysqld:
<br />
mysqlnd<br />
<br />
mysqlnd	enabled<br />
Version	mysqlnd 5.0.10 - 20111026 - $Id: e707c415db32080b3752b232487a435ee0372157 $<br />
Compression	supported<br />
SSL	supported<br />
Command buffer size	4096<br />
Read buffer size	32768<br />
Read timeout	31536000<br />
Collecting statistics	Yes<br />
Collecting memory statistics	No<br />
Tracing	n/a<br />
Loaded plugins	mysqlnd,example,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password<br />
API Extensions	no value<br />
<br />
mysqlnd statistics	<br />
bytes_sent<br />

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn