PHP connection MySQL Error: Fatal error:call to undefined function mysql_connect () solution

Source: Internet
Author: User
A new installation of a WINDOWS2008R2, configuration Php_mysql_apache environment, the system is 64-bit, and encountered a lot of trouble.

All downloaded 64-bit compressed package to resolve. Last PHP connection MySQL error, Fatal error:call to undefined function mysql_connect ()

Baidu, Google also looked for a long time, and finally solved. Details: Other php.in and Apache httpd.conf configurations Needless to say,

Key point 1. Copy the PHP Libmysql.dll file into the Apache bin, a test, incredibly good.

Key point 2: It is best to use Phpinidir in conjunction with Apache2, which is to include in the apache2/conf/httpd.conf file:

# Configure the path to PHP.ini "c:/php" is the file paths where PHP.ini is located
Phpinidir "c:/php"

On NTFS, remember to give the server Read permission to open php.ini.

  • 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.