Mysql_connect () is not supported. Check whether the mysql module is correctly loaded.

Source: Internet
Author: User

After configuring the PHP environment on the basis of the above article, I found that there was still a problem during the discuz forum!

Recommended function name check results
Mysql_connect () is not supported. Check whether the mysql module is correctly loaded.
Fsockopen () supports none
Gethostbyname () supports none
File_get_contents () supported none
Xml_parser_create () supports none

 

The solution is as follows:

Note the following when integrating IIS and PHP:
Install PHP
(1) decompress the downloaded php-5.1.4-win32.zip file and copy it:
X: \ Server_Core \ PHP;
(2) Go to the X: \ Server_Core \ PHP folder and rename php. ini-dist to php. ini;
(3) Open the php. ini file and find:
Extension_dir = "./"
Change it;
Extension_dir = "X: \ Server_Core \ PHP \ ext"
(4) find Windows Extensions.
In the dynamic module configuration under Windows Extensions, You need to enable the following module support: (remove the number before each line of the module configuration)
Extension = php_mbstring.dll
Extension = php_gd2.dll
Extension = php_mysql.dll
(5) find:
Disable_functions =
Changed:
Disable_functions =
Passthru, exec, system, popen, chroot, escapeshellcmd, escapeshellarg, shell_exec,PrOc_open, proc_get_status, article 4:
--------------------------------------------------------------------------------

(4) find Windows Extensions.
In the dynamic module configuration under Windows Extensions, You need to enable the following module support: (remove the number before each line of the module configuration)
Extension = php_mbstring.dll
Extension = php_gd2.dll
Extension = php_mysql.dll-----> The above error is reported because the Semicolon ";" is not removed in front of this line. That is, remove the semicolon and restart the Apache server !!!

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.