Because the project requires the use of the PHP Yii framework, a colleague configured PHP and Yii in the Yii framework. The necessary conditions for accessing Yii components showed that the mysql pdo has not been loaded:
After checking the php.ini file, the component has been set to load:
extension_dir = "ext"
cgi.force_redirect = 0
extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_pdo_mysql.dll
After research and testing, it was found that the reason is extension_dir, which must be set to an absolute path to load successfully:
extension_dir = "D:/var/php53/ext"
Restart Apache, then open the Yii framework page and display the loading success:
http://www.bkjia.com/PHPjc/477837.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/477837.htmlTechArticleBecause the project needs to use the PHP Yii framework, a colleague configured php and yii in the Yii framework and visited the Yii component necessary requirements web page It shows that mysql pdo has not been loaded: After checking the php.ini file, the component has been set...