PHP.ini expanded, why can't find MySQL module, unable to connect MySQL AH

Source: Internet
Author: User
Tags phpinfo
Title

MySQL can also be connected.
mysql> use testdatabase changedmysql> source e:/sql/db. SQL; Query OK, 0 rows affected (0.03 sec)


The php.ini is open.
;; 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 is 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



Phpinfo (); only mysqld in the display:
Mysqlndmysqlndenabledversionmysqlnd 5.0.10-20111026-$Id: e707c415db32080b3752b232487a435ee0372157 $ Compressionsupportedsslsupportedcommand buffer Size4096read Buffer size32768read timeout31536000collecting Statisticsyescollecting Memory statisticsnotracingn/aloaded Pluginsmysqlnd,example,debug_trace,auth_plugin_mysql_ Native_password,auth_plugin_mysql_clear_passwordapi Extensionsno Valuemysqlnd statisticsbytes_sent


Reply to discussion (solution)

Extension=php_mysqli.dll

Try, also useless, all extensions are open or not ...

Phpinfo () and also shows where the php.ini used
Please check if it is consistent with your changes.

Copy the Libmysql.dll in the PHP directory into the system32 directory, in the case of a 64-bit system, then copy the SysWow64 directory

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    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.