fhding
(Hi5miss)
1
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
samdark
(Alexander Makarov)
2
Please show your DB config (except credentials).
fhding
(Hi5miss)
3
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.
samdark
(Alexander Makarov)
4
Yii config looks OK. Try checking if mysql is using persistent connections.
fhding
(Hi5miss)
5
I use the default DB connections of yii.