Jump to content

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?

Edited by possien

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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