類似Table '%s' is marked as crashed and should be repaired的數(shù)據(jù)報(bào)錯(cuò)在discuz論壇經(jīng)常會遇到,一般會出現(xiàn)在論壇搬遷或操作數(shù)據(jù)庫停止之后,這個(gè)報(bào)錯(cuò)一般修復(fù)下提示的數(shù)據(jù)表就可以正常 下面具體報(bào)錯(cuò)和截圖 (145) Table '.\zhanhelp\common_process' is marked as crashed and should be repaired SELECT * FROM common_process WHERE `processid`='DZ_CRON_6' 此處的common_process就是數(shù)據(jù)表的名稱,zhanhelp是數(shù)據(jù)庫的名稱,也就是說zhanhelp數(shù)據(jù)庫下的common_process表出錯(cuò),這樣修復(fù)的時(shí)候找到該數(shù)據(jù)庫下的該表修復(fù)就可以了。 解決方法: (個(gè)人比較推薦方法1和3,新手盡量使用方法1和3會比較安全) 1、通過論壇的 tool 工具進(jìn)行修復(fù) 下載地址和使用說明見:http://bmrsportswear.com/thread-808-1-1.html 2、myisamchk 修復(fù) myisamchk 命令的格式如下: 1)myisamchk --recover tbl_name 2)myisamchk --recover /path/tbl_name 這種方法要指定數(shù)據(jù)表在磁盤上的位置。 3、使用 phpMyAdmin 修復(fù)數(shù)據(jù)的方法 進(jìn)入論壇數(shù)據(jù)庫,然后選擇要修復(fù)的表,在頁腳下拉框選擇“修復(fù)”即可。 注意:如果需要修復(fù)數(shù)據(jù)庫,修復(fù)前一定要做好備份。 推薦閱讀: 1、Can't connect to MySQL server on 'localhost'無法連接到 MySQL數(shù)據(jù)庫的解決方法 http://bmrsportswear.com/thread-1645-1-1.html 2、Table 'forum_thread' doesn't exist數(shù)據(jù)庫錯(cuò)誤的解決方法 http://bmrsportswear.com/thread-1646-1-1.html 3、Access denied for user: '***@localhost' (Using password: YES) http://bmrsportswear.com/thread-1648-1-1.html 4、Too many connections連接數(shù)超過了 MySQL 設(shè)置的值 http://bmrsportswear.com/thread-1649-1-1.html |