温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

部署禅道数据库报错

发布时间:2020-10-14 07:53:35 来源:网络 阅读:1741 作者:自由linux 栏目:数据库

一 故障描述

 部署禅道后,无法登录页面。有如下报错信息:

60507 17:03:49 [ERROR] /opt/zbox/run/mysql/mysqld: Table './zentao/zt_group' is marked as crashed and last (automatic?) repair failed

禅道所有的数据库表都是使用的MyISAM存储引擎,而MyISAM存储引擎很容易导致数据库表崩溃。


二 解决办法


停掉mysql,然后使用myisamchk检查zt_group这个表的数据库文件zt_group.MYI

myisamchk是mysql自带的MyISAM存储引擎检查和修复工具

# myisamchk zt_group.MYI
Checking MyISAM file: zt_group.MYI
Data records:      11   Deleted blocks:       0
myisamchk: warning: Table is marked as crashed and last repair failed
- check file-size
myisamchk: warning: Size of datafile is: 416             Should be: 380
- check record delete-chain
- check key delete-chain
- check index reference
- check data record references index: 1
- check record links
myisamchk: error: Keypointers and record positions doesn't match
myisamchk: warning: Found         13 key parts. Should be: 11
MyISAM-table 'zt_group.MYI' is corrupted
Fix it using switch "-r" or "-o"
# myisamchk -r -o -f zt_group.MYI
- recovering (with keycache) MyISAM-table 'zt_group.MYI'
Data records: 11


重启启动mysql,然后就可以登录禅道了。





参考文档:

http://www.thinkphp.cn/code/430.html


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI