Mysql cannot be found in phpinfo, Online =. what should I do?

Source: Internet
Author: User
Mysql cannot be found in phpinfo. in online win2008r2iis7.5fastcgiphp5.2.17php5.5, the information is running phpinfo and the MYSQL module cannot be found. The running program reports the error "Fatalerror: Calltoundefinedfunctionmysql_connect () inD: websitehead. phponl phpinfo cannot find mysql, Online =
Win2008 r2 iis7.5 fastcgi php5.2.17 php5.5
When phpinfo is running, the MYSQL module cannot be found.
The running program reports the error "Fatal error: Call to undefined function mysql_connect () in D: \ website \ head. php on line 4
"

Php. ini

Extension = php_mysql.dll
Extension = php_mysqli.dll

Enabled for help


------ Solution --------------------
Copy the dll file to system32 in win2008.
After modifying php. ini, remember to restart iis.
------ Solution --------------------
Phpinfo finds whether the File loaded by the load Configuration File is the same as the php. ini File you modified.

In addition, check that the php_mysql.dll file is in the/php/ext/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.