CDbException

CDbException

CDbCommand 无法执行 SQL 语句: SQLSTATE[HY000]: General error: 126 Incorrect key file for table './techbrood_base/news_articles.MYI'; try to repair it

程序日志
时间 等级 类别 信息
16:31:45.739203 error system.db.CDbCommand
CDbCommand::execute() failed: SQLSTATE[HY000]: General error: 126 Incorrect
key file for table './techbrood_base/news_articles.MYI'; try to repair it.
The SQL statement executed was: UPDATE `news_articles` SET `Views`=:yp0
WHERE `news_articles`.`Id`='171'. Bound with :yp0=12686.
16:31:45.739377 error exception.CDbException
CDbException: CDbCommand 无法执行 SQL 语句: SQLSTATE[HY000]: General
error: 126 Incorrect key file for table
'./techbrood_base/news_articles.MYI'; try to repair it in
/home/www/sites/framework/db/CDbCommand.php:357
Stack trace:
#0 /home/www/sites/framework/db/ar/CActiveRecord.php(1691):
CDbCommand->execute()
#1
/home/www/sites/techbrood/protected/modules/News/components/ArticleDetailsWidget.php(51):
CActiveRecord->updateByPk('171', Array)
#2 /home/www/sites/techbrood/protected/extensions/helpers/Template.php(38):
ArticleDetailsWidget->run()
#3 /home/www/sites/techbrood/themes/techbrood/views/news-details.php(7):
Template::widget('ARTICLE_DETAIL', 'application.mod...')
#4 /home/www/sites/framework/web/CBaseController.php(126):
require('/home/www/sites...')
#5 /home/www/sites/framework/web/CBaseController.php(95):
CBaseController->renderInternal('/home/www/sites...', NULL, true)
#6 /home/www/sites/framework/web/CController.php(869):
CBaseController->renderFile('/home/www/sites...', NULL, true)
#7 /home/www/sites/framework/web/CController.php(782):
CController->renderPartial('/news-details', NULL, true)
#8
/home/www/sites/techbrood/protected/controllers/CmsBaseController.php(82):
CController->render('/news-details')
#9
/home/www/sites/techbrood/protected/controllers/DefaultController.php(40):
CmsBaseController->showTemplate()
#10 /home/www/sites/framework/web/actions/CInlineAction.php(49):
DefaultController->actionIndex()
#11 /home/www/sites/framework/web/CController.php(308):
CInlineAction->runWithParams(Array)
#12 /home/www/sites/framework/web/CController.php(286):
CController->runAction(Object(CInlineAction))
#13 /home/www/sites/framework/web/CController.php(265):
CController->runActionWithFilters(Object(CInlineAction), Array)
#14 /home/www/sites/framework/web/CWebApplication.php(282):
CController->run('index')
#15 /home/www/sites/framework/web/CWebApplication.php(141):
CWebApplication->runController('default/index')
#16 /home/www/sites/framework/base/CApplication.php(168):
CWebApplication->processRequest()
#17 /home/www/sites/techbrood/index.php(31): CApplication->run()
#18 {main}
REQUEST_URI=/zh/news/javascript/%e5%89%8d%e7%ab%af%e5%bc%80%e5%8f%91%e6%a1%86%e6%9e%b6%e6%8a%80%e6%9c%af%e9%80%89%e5%9e%8b%ef%bc%9aangular2-vs-react-vs-jquery_2.html
HTTP_REFERER=http://www.techbrood.com/zh/news/javascript/%E5%89%8D%E7%AB%AF%E5%BC%80%E5%8F%91%E6%A1%86%E6%9E%B6%E6%8A%80%E6%9C%AF%E9%80%89%E5%9E%8B%EF%BC%9Aangular2-vs-react-vs-jquery_2.html
---