Jump to content

YII: CDbConnection failed to open the DB connection: could not find driver


possien

Recommended Posts

I am trying to set up yii.  I have it installed and running on Ubuntu 13.10.  I have googled and searched to find why it cannot connect to a MySQL db and can't find a fix.  I have MySQL in my php ini file with pdo, checked passwords/users and checked the requirements page. I've changed the main.php (several times) and console.php.   Using PHP 5.3.3, MySql 5.5.3.  Everything seems to be correct but obviously not.  Anyone have any suggestions?

I've changed the main.php (several times) and console.php.

Changed them *how* ... or, to what?

 

Anyone have any suggestions?

Looking at this page: http://www.yiiframework.com/doc/guide/1.1/en/database.dao

 

I see a couple, maybe three, possibilities:

 

1] No PDO extension?

2] No PDO database driver?

3] Incorrect DNS or credentials.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.