立即注冊 找回密碼

QQ登錄

只需一步,快速開始

Table '%s' is marked as crashed and should be repaired數(shù)據(jù)庫報(bào)錯(cuò)解決方法

2015-4-13 22:38| 發(fā)布者: 學(xué)習(xí)NO.1| 查看: 1435| 評論: 0|原作者: 學(xué)習(xí)NO.1

摘要: 類似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ò)和截圖 ...
類似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ò)和截圖
QQ截圖20150413220441.jpg


(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



鮮花

握手

雷人

路過

雞蛋

最新評論

!jz_fbzt! !jz_lxwm! !jz_gfqqq!

關(guān)于我們|手機(jī)版|小黑屋|地圖|【道勤網(wǎng)】-bmrsportswear.com 軟件視頻自學(xué)教程|免費(fèi)教程|自學(xué)電腦|3D教程|平面教程|影視動(dòng)畫教程|辦公教程|機(jī)械設(shè)計(jì)教程|網(wǎng)站設(shè)計(jì)教程【道勤網(wǎng)】 ( 皖I(lǐng)CP備15000319號-1 )

GMT+8, 2024-10-23 13:32

Powered by DaoQin! X3.4 © 2016-2063 Dao Qin & 道勤科技

返回頂部