WIN 7 64 bit under PHP cannot link MySQL

Source: Internet
Author: User
Tags phpinfo
WIN 7 64-bit under iis+php (5.2.5) +mysql (5.5.27)
The installation process is not error-free.
The single-Shipment php file is normal.

The link to the database is not.
Install Ecshop, check the process, prompt MySQL .... Not supported
Run phpMyAdmin prompt for MySQL load,

php.ini files are as follows
; Extension=php_bz2.dll
; Extension=php_curl.dll
; Extension=php_dba.dll
; Extension=php_dbase.dll
; Extension=php_exif.dll
; Extension=php_fdf.dll
Extension=php_gd2.dll
; Extension=php_gettext.dll
; Extension=php_gmp.dll
; Extension=php_ifx.dll
; Extension=php_imap.dll
; Extension=php_interbase.dll
; Extension=php_ldap.dll
Extension=php_mbstring.dll
; Extension=php_mcrypt.dll
; Extension=php_mhash.dll
; Extension=php_mime_magic.dll
; Extension=php_ming.dll
; Extension=php_msql.dll
; Extension=php_mssql.dll
Extension=php_mysql.dll
Extension=php_mysqli.dll
; Extension=php_oci8.dll
; Extension=php_openssl.dll
; Extension=php_pdo.dll
; Extension=php_pdo_firebird.dll
; Extension=php_pdo_mssql.dll
Extension=php_pdo_mysql.dll
; Extension=php_pdo_oci.dll
; Extension=php_pdo_oci8.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
; Extension=php_snmp.dll
; Extension=php_soap.dll
; Extension=php_sockets.dll
Extension=php_sqlite.dll
; Extension=php_sybase_ct.dll
; Extension=php_tidy.dll
; Extension=php_xmlrpc.dll
; Extension=php_xsl.dll
; Extension=php_zip.dll


Reply to discussion (solution)

What is the code? Did you have an error?

phpMyAdmin Tips below:

The mysqli extension is missing. Please check your PHP configuration.

Link Database tips:

Fatal error:call to undefined function mysql_connect () in

Link Database code:

$server _name= "localhost";
$server _user= "root";
$server _pass= "Password";
$server _database= "database name";

$conn =mysql_connect ($server _name, $server _user, $server _pass);
mysql_select_db ($server _database, $conn);
mysql_query ("Set names gb2312");

Phpinfo see if the MySQL extension is turned on, is there Php_mysql.dll file in the Php/ext directory?

Phpinfo no mysq information.

The Php/ext directory has php_mysql.dll files and has been copied windows/system32

Extension=php_mysql.dll
Extension=php_pdo_mysql.dll
has been opened

The reason should be that the MySQL extension is not loaded.

The php.ini file extension is open.
GD can be loaded.
MySQL loading is not on.

There should be no DLL files

windows/system32/(Php/ext), there are Php_mysql.dll, Php_pdo_mysql.dll

Not to put Php_mysql.dll files, and have copied windows/system32, but Libmysql.dll

Libmysql.dll also copied the

It's settled.

How did you solve this problem?

Not because of the php.ini problem, that Libmysql was not loaded

How is it solved? I have this problem too.

Absolute path specified in Extension_dir

Workaround:
Right button My Computer--Properties--advanced--environment variables
Find the end of path plus D:\PHP, this directory is your PHP root directory oh, then restart Apache, Print phpinfo (), haha! Finally saw the long-lost MySQL was loaded in, (after changing the path, it is best to restart the computer Oh ...). )

  • 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.