Unable to load MySQL extension please check PHP configuration _php Tutorial

Source: Internet
Author: User
Today in the configuration of the Apache and PHP environment, the personal feel configured, and wrote the test PHP files can be executed successfully, but when running phpMyAdmin, prompted not to load the MySQL extension,
Please check the PHP configuration, and then after the troubleshooting to find a solution, the following share to everyone.

The environment is well configured, I test the file as a.php.

The code is as follows Copy Code

Echo Phpinfo ();

$CN = mysql_connect (' localhost ', ' ttftroat ', ' xxx ') or Die (Mysql_error ());
?>

I have no problem entering the results, but I am using phpMyAdmin to prompt

PhpMyAdmin-Error

Unable to load MySQL extension,
Check your PHP configuration-documentation

Solutions

Search for "Extension_dir =./", change to "Extension_dir = C:phpext", and then go to these semicolons:

Extension=php_mbstring.dll
Extension=php_gd2.dll
Extension=php_mysql.dll

And then restart Apache to solve it.

http://www.bkjia.com/PHPjc/632106.html www.bkjia.com true http://www.bkjia.com/PHPjc/632106.html techarticle today in the configuration of Apache and PHP environment, the personal feeling configured, I wrote the test php files can be executed successfully, but when running phpMyAdmin, the prompt cannot load MySQL extension, ...

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