Iis6 build a php runtime environment mysql connection question _ PHP Tutorial-php Tutorial

Source: Internet
Author: User
Iis6 sets up the mysql connection in the php runtime environment. Environment xpsp3iis6php6 my iis installation package is downloaded from the Internet, and the original system CD installation package is not used. Iis6 integrates the php5 environment, which is not described here. Mainly describe my environment

Xp sp3/iis6

Php6

My iis installation package is downloaded from the Internet, and the installation package of the original system disc is not used. Iis6 integrates the php5 environment, which is not described here. This section describes the mysql connection problems I encountered during the configuration process,

System exception prompt: error: Call to undefined function mysql_connect () in. by checking the php configuration information, it is found that not many mysql instances are supported.

Solution

1. check the php environment

Php. ini path problems

If the php. ini path can be correctly found by the system, the above interface will be displayed.

Extension_dir path problem,

If the path is incorrect, modify php. ini and find extension_dir.

Extension = php_mysql.dll check whether it is enabled

Check whether the semicolon before extension = php_mysql.dll in php. ini is removed.

Find the mysql column in the configuration file of php. ini.

The configuration is as follows:

Mysql. default_port = 3306

Mysql. default_host = localhost

Mysql. default_user = root

2. libmysql. dll

Check whether the C: \ WINDOWS \ system32 file contains the libmysql. dll file. If no, copy one from the php installation path to the system32 directory.

Check the php environment configuration again

The mysql configuration is successful!

Unzip xp sp3/iis6 php6 my iis installation package is downloaded from the Internet, and the installation package of the original system disc is not used. Iis6 integrates the php5 environment, which is not described here. Mainly describe me...

Related Article

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.