MySQL is not found in phpinfo after a successful PHP configuration

Source: Internet
Author: User

The previous PHP configuration is quite smooth, this time has been encountered MySQL module always does not take effect.

Press the various methods online, as follows:

1, open php.ini configuration file, generally in the C:\Windows below, search "Extension=php_mysql.dll", and then remove the previous semicolon comment.

2, in php.ini check extension_dir = "C:/php5/ext", this extension path is correct, "C:/php5/ext" is just an example, you need to fix your native PHP path.

3. If not, copy the Libmysql.dll file below the PHP root directory to the C:\Windows\System32 directory. Then restart the computer and test again.

At first extension_dir I used a relative path, and I thought there was no problem. After finding the absolute path, it was so good .....

MySQL is not found in phpinfo after a successful PHP configuration

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.