[英]Could not find driver PDOException in yii2
I am using xampp
and building a project in Yii2
.我正在使用
xampp
并在Yii2
构建一个项目。 I am getting below error我得到以下错误
"Caused by: PDOException could not find driver in D:\\xampp\\htdocs\\basic\\vendor\\yiisoft\\yii2\\db\\Connection.php at line 602".
“引起:PDOException 在 D:\\xampp\\htdocs\\basic\\vendor\\yiisoft\\yii2\\db\\Connection.php 中的第 602 行找不到驱动程序”。
I also uncommented extension=php_pdo_pgsql.dll
in php.ini
file, but still it's not working.我还在
php.ini
文件中取消了extension=php_pdo_pgsql.dll
注释,但它仍然无法正常工作。
I figured out my problem.In php.ini file previously extension=php_pdo_mysql.dll was commented.我想通了我的问题。在 php.ini 文件中以前 extension=php_pdo_mysql.dll 被评论。 I uncommented that and now its working.
我取消了评论,现在它的工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.