Mysql_connect () not supported please check that the MySQL module is loading correctly

Source: Internet
Author: User
Tags phpinfo

Save the following code as phpinfo.php:

<?php
Phpinfo ();
?>

Mysql
-------
MySQL Support Enabled
Active Persistent Links 1
Active Links 1
Client API version 5.0.37
-------
If you do not see it and you are sure that the database is installed, you may need to load the Libmysql.dll on the server:
Open httpd.conf (This is Apache configuration file), add:
LoadFile "Your PHP directory/libmysql.dll"
Then restart the HTTP service.


After I did what he said, I couldn't see the information about MySQL, but the database did run correctly.

So search the "phpinfo () without MySQL" result is the need to D:php5ext directory in the Php_mysql.dll, Php_mysqli.dll and the upper directory of the Libmysql.dll copy to System32

and add the PHP directory to the Windows system path,

Under Windows Nt,2000,xp and 2003:

Go to Control Panel and open the System icon (Start-> setup-> Control Panel-> System, Windows xp/2003 is: Start-> Control Panel-> System)

Select the Advanced tab page

Click on the "Environment variables" button

In the System Variables column

Locate the Path (you may need to scroll down to find it)

Double-click the Path of the mouse

In the end add your PHP directory, including the front of the ";" (For example:; c:php)

Click "OK" and restart the computer

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.