CDbException

CDbException

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

程序日志
时间 等级 类别 信息
06:04:41.662282 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.
06:04:41.662398 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/%25E5%2589%258D%25E7%25AB%25AF%25E5%25BC%2580%25E5%258F%2591%25E6%25A1%2586%25E6%259E%25B6%25E6%258A%2580%25E6%259C%25AF%25E9%2580%2589%25E5%259E%258B%25EF%25BC%259Aangular2-vs-react-vs-jquery_2.html
---