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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-23 14:16:09
Original
1533 people have browsed it

如题

mysql也是可以连接的

mysql> use testDatabase changedmysql> source e:/sql/DB.SQL;Query OK, 0 rows affected (0.03 sec)
Copy after login


php.ini里也打开了
;;extension=php_bz2.dll;extension=php_curl.dll;extension=php_fileinfo.dllextension=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.dllextension=php_mbstring.dll;extension=php_exif.dll      ; Must be after mbstring as it depends on itextension=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.dllextension=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
Copy after login



phpinfo();显示里 只有mysqld:
mysqlndmysqlnd	enabledVersion	mysqlnd 5.0.10 - 20111026 - $Id: e707c415db32080b3752b232487a435ee0372157 $Compression	supportedSSL	supportedCommand buffer size	4096Read buffer size	32768Read timeout	31536000Collecting statistics	YesCollecting memory statistics	NoTracing	n/aLoaded plugins	mysqlnd,example,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_passwordAPI Extensions	no valuemysqlnd statistics	bytes_sent
Copy after login


回复讨论(解决方案)

extension=php_mysqli.dll
Copy after login

试了,也没用,全部扩展都打开还是不行。。。

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

将PHP目录下的libmysql.dll拷入system32目录,如是64位系统,则拷入syswow64目录

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template