Jump to content

Archived

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

possien

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

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Ok, I got it.  Editing the wrong php.ini file.  Got it fixed  thanks!

Share this post


Link to post
Share on other sites

×
×
  • 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.