zeefengleo

Database Query Error
站点服务器因磁盘空间满导致应用无法正常访问,经扩容后发现站点打开时提示【Database Query Error】...
扫描右侧二维码阅读全文
09
2019/09

Database Query Error

站点服务器因磁盘空间满导致应用无法正常访问,经扩容后发现站点打开时提示【Database Query Error】。

从Nginx的error.log来看:

less /var/log/nginx/error.log
2019/09/07 18:10:03 [error] 1683#0: *582 FastCGI sent in stderr: "PHP message: Table './typecho/typecho_contents' is marked as crashed and should be repaired" while reading response header from upstream, client: 101.132.125.197, server: www.54itman.club, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.54itman.club"

从日志来看,是数据库层面出现了问题,根据提示决定修复数据库表:

[root@mail build]#  mysqlcheck -u root -p --repair --all-databases
Enter password:

接下来进入自动修复阶段。。。。

Last modification:September 9th, 2019 at 11:34 am
如果觉得我的文章对你有用,请随意赞赏

Leave a Comment