Home > Backend Development > PHP Tutorial > iis6 build php running environment mysql connection problem_PHP tutorial

iis6 build php running environment mysql connection problem_PHP tutorial

WBOY
Release: 2016-07-14 10:08:11
Original
848 people have browsed it

environment

xp sp3/iis6
php6
My iis installation package was downloaded from the Internet and did not use the original system CD installation package. As for the integration of iis6 into the php5 environment, there are many on the Internet that I will not introduce here. Mainly describes the mysql connection problem I encountered during the configuration process,
System exception prompt: error: Call to undefined function mysql_connect() in. By checking the configuration information of PHP, it was found that there is no support for mysql
Solution ideas
1. Check the php environment
php.ini path problem
iis6 build php running environment mysql connection problem_PHP tutorial
If the php.ini path can be found correctly by the system, the above interface will appear.
extension_dir path problem,
iis6 build php running environment mysql connection problem_PHP tutorial
If the path is incorrect, you need to modify php.ini, find extension_dir and modify it
extension=php_mysql.dll check whether it is enabled
Check whether the semicolon in front of 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 if there is a libmysql.dll file in C:WINDOWSsystem32. If not, copy one from the php installation path to system32
Check the php environment configuration information again
iis6 build php running environment mysql connection problem_PHP tutorial
Seeing this information means that mysql related configuration is successful!

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/477801.htmlTechArticleEnvironment xp sp3/iis6 php6 My iis installation package was downloaded from the Internet and was not installed using the original system CD Bag. As for the integration of iis6 into the php5 environment, there are many on the Internet that I will not introduce here. Mainly describe me...
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