程序员小灰java_Database Exception

PDOException: SQLSTATE[HY000]: General error: 145 Table './21ic_www_2020/article_read' is marked as crashed and should be repaired in /var/www/www.21ic.com/www/vendor/yiisoft/yii2/db/Command.php:1290

Stack trace:

#0 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/db/Command.php(1290): PDOStatement->execute()

#1 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/db/Command.php(1158): yii\db\Command->internalExecute('SELECT * FROM `...')

#2 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/db/Command.php(399): yii\db\Command->queryInternal('fetchAll', NULL)

#3 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/db/Query.php(237): yii\db\Command->queryAll()

#4 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/db/ActiveQuery.php(133): yii\db\Query->all(NULL)

#5 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/db/ActiveRelationTrait.php(270): yii\db\ActiveQuery->all()

#6 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/db/ActiveQueryTrait.php(151): yii\db\ActiveQuery->populateRelation('read', Array)

#7 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/db/ActiveQuery.php(224): yii\db\ActiveQuery->findWith(Array, Array)

#8 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/db/Query.php(238): yii\db\ActiveQuery->populate(Array)

#9 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/db/ActiveQuery.php(133): yii\db\Query->all(NULL)

#10 /var/www/www.21ic.com/www/models/ArticleQuery.php(19): yii\db\ActiveQuery->all(NULL)

#11 /var/www/www.21ic.com/www/controllers/ColumnController.php(151): app\models\ArticleQuery->all()

#12 [internal function]: app\controllers\ColumnController->actionView('659', NULL)

#13 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)

#14 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)

#15 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('view', Array)

#16 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('column/view', Array)

#17 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request))

#18 /var/www/www.21ic.com/www/web/index.php(18): yii\base\Application->run()

#19 {main}

Next yii\db\Exception: SQLSTATE[HY000]: General error: 145 Table './21ic_www_2020/article_read' is marked as crashed and should be repaired

The SQL being executed was: SELECT * FROM `article_read` WHERE `article_id` IN (888001, 887912, 887709, 887700, 887633, 887554, 887386, 887267, 887068, 886986, 886890, 886739, 886571, 886553, 886523) in /var/www/www.21ic.com/www/vendor/yiisoft/yii2/db/Schema.php:674

Stack trace:

#0 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/db/Command.php(1295): yii\db\Schema->convertException(Object(PDOException), 'SELECT * FROM `...')

#1 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/db/Command.php(1158): yii\db\Command->internalExecute('SELECT * FROM `...')

#2 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/db/Command.php(399): yii\db\Command->queryInternal('fetchAll', NULL)

#3 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/db/Query.php(237): yii\db\Command->queryAll()

#4 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/db/ActiveQuery.php(133): yii\db\Query->all(NULL)

#5 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/db/ActiveRelationTrait.php(270): yii\db\ActiveQuery->all()

#6 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/db/ActiveQueryTrait.php(151): yii\db\ActiveQuery->populateRelation('read', Array)

#7 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/db/ActiveQuery.php(224): yii\db\ActiveQuery->findWith(Array, Array)

#8 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/db/Query.php(238): yii\db\ActiveQuery->populate(Array)

#9 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/db/ActiveQuery.php(133): yii\db\Query->all(NULL)

#10 /var/www/www.21ic.com/www/models/ArticleQuery.php(19): yii\db\ActiveQuery->all(NULL)

#11 /var/www/www.21ic.com/www/controllers/ColumnController.php(151): app\models\ArticleQuery->all()

#12 [internal function]: app\controllers\ColumnController->actionView('659', NULL)

#13 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)

#14 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)

#15 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('view', Array)

#16 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('column/view', Array)

#17 /var/www/www.21ic.com/www/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request))

#18 /var/www/www.21ic.com/www/web/index.php(18): yii\base\Application->run()

#19 {main}

Additional Information:

Array

(

[0] => HY000

[1] => 145

[2] => Table './21ic_www_2020/article_read' is marked as crashed and should be repaired

)

Copied!

gK6sUu5CuQ0NQAAAABJRU5ErkJggg==

2MtX8Mf2fhjE3QWPKAAAAAASUVORK5CYII=

BJk5VnLk0AAAAASUVORK5CYII=

zf6yb8AAwCmB2Y7BrVl9wAAAABJRU5ErkJggg==

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值