‘connectionString’ => ‘mysql:host=localhost;dbname=test’,

‘emulatePrepare’ => true,

‘username’ => ‘root’,


‘password’ => ‘123’,

‘charset’ => ‘utf8’,








CDbCache had already produced table(‘yiicache’) in my database!

But When my Web application run :


It will make a mistake:

CDbConnection is inactive and cannot perform any DB operations.

I don’t know Why?

Since he had already produced the table, represents CDbCache is normal!

Is really my database question?

No wonder, you disabled auto connect:

Thank you for your reply!

But I had already tried!

It still could not the normal operation!

I thought that is not this reason!