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