I’ve got a Yii app with a MySQL database, processing about 20,000 requests per day. About 50-100 times a day I get errors like the ones shown below. I’ve tweaked the maximum number of MySql connections and believe it to be at a good setting. I’ve also got schema caching turned on (‘schemaCachingDuration’ => ‘300’). My db connection string is like:
‘connectionString’ => ‘mysql:host=127.0.0.1;dbname=mydbname’,
Sample error is shown below. Anyone else seeing this kind of thing?
[sql]
2011/02/17 16:47:04 [error] [system.db.CDbCommand] Error in querying SQL:
SHOW COLUMNS FROM user
2011/02/17 16:47:04 [error] [exception.CDbException] exception ‘CDbException’ with message
‘The table “user” for active record class “User” cannot be found in the database.’
in /home/moi/src/yii/framework/db/ar/CActiveRecord.php:2159
Stack trace:
#0 /home/moi/src/yii/framework/db/ar/CActiveRecord.php(353):
ActiveRecordMetaData->__construct(Object(User))
#1 /home/moi/src/myproj/www/protected/models/User.php(24):
CActiveRecord::model(‘Bonus’)
…
[/sql]
One more thing. When this error arises, it arises for every db table in my schema.
Thanks in advance…
Emily