Today, when I configured the apache and php environments, I personally felt that the configuration was complete. I wrote my own PHP file to test whether the php file was successfully executed. However, when I ran phpMyAdmin, I was prompted that the mysql extension could not be loaded. Please check the PHP configuration, later... today, when I configured the apache and php environments, I personally felt that the configuration was complete. I wrote my own PHP file to test whether the php file was successfully executed. However, when I ran phpMyAdmin, I was prompted that the mysql extension could not be loaded. Please check the PHP configuration, after troubleshooting, I found a solution. I will share it with you below.
After the environment is configured, my test file is like a. php.
The input result is correct. However, when using phpmyadmin, the following message is displayed: phpMyAdmin-error. mysql extension cannot be loaded. check the PHP configuration-documentation.
Solution: Search for "extension_dir =./" and change it to "extension_dir = C: phpext". Then, remove these semicolons:
Extension = php_mbstring.dll extension = php_gd2.dll extension = php_mysql.dll
Restart apache to solve the problem.
Address:
Reprinted at will, but please attach the article address :-)