溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

部署禪道數據庫報錯

發布時間:2020-10-14 07:53:35 來源:網絡 閱讀:1810 作者:自由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

亚洲午夜精品一区二区_中文无码日韩欧免_久久香蕉精品视频_欧美主播一区二区三区美女