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