If my web pages in a period of time has not been visited (about for several hours), page will tip.

Refresh, and to work properly. I don’t know why…

The Exception message is "CDbConnection is inactive and cannot perform any DB operations.".

My yii version is 1.1.3

Please show your DB config (except credentials).

Database is mysql 5.5 .

The DB config in main.php is

      'db'=>array('connectionString' => 'mysql:host=***.***.***.11;dbname=api',

                  'emulatePrepare' => true,

                  'username' => '...', 

                  'password' => '*****',

                  'charset' => 'utf8', 


Database is merely by simple installed.

Yii config looks OK. Try checking if mysql is using persistent connections.

I use the default DB connections of yii.