Not sure how to fix this.
Clean install on Ubuntu 14.04
Database driver is installed
could not find driver
Caused by: PDOException
could not find driver
in /var/www/mp/vendor/yiisoft/yii2/db/Connection.php at line 603
| Q | A |
| --- | --- |
| Yii version | 2.0.? |
| PHP version | |
| Operating system | |
sudo apt-get install php5-mysql
I have the same issue after running a yii2 project on a different PC (Different from the one it was developed on). I am using Windows 8.1 and WAMP, connecting to a remote SQL server. From PHPinfo(), I can see that I have;
PDO drivers (mysql, odbc and sqlite) enabled. For pdo_mysql, I can see mysqlnd 5.0.11. What could be the problem?
NB. I am new to yii2.
Thank you for your question.
In order for this issue tracker to be effective, it should only contain bug reports and feature requests.
We advise you to use our community driven resources:
If you are confident that there is a bug in the framework, feel free to provide information on how to reproduce it. This issue will be closed for now.
_This is an automated comment, triggered by adding the label question
._
Most helpful comment
sudo apt-get install php5-mysql