Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(): Failed opening '/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php' for inclusion (include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear') in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24
如何執行資料庫修復功能,及其使用時機為何? – unethost無限空間虛擬主機 技術分享部落格

如何執行資料庫修復功能,及其使用時機為何?

mysql_repairwp
如果瀏覽網站,出現提示是mysql資料庫異常,
像是關鍵字為: mysql Duplicate
請馬上參考這篇內容來進行處理。

為何會有資料庫損毀的問題?

php+mysql所撰寫程式,有時當資料被大量寫入(或是攻擊),
或是資料庫被無故中斷(不是透過正常語法restart,stop),
可能會出現資料庫損毀的問題。
瀏覽到相關頁面時,就會出現像下列圖片的狀況。
msyql_repair01

 

一般如何修復呢?

透過phpmyadmin,裡面就有著修復(repair)功能,
實在相當的方便。

但是cpanel管理的網站空間,這個功能則被嵌到cpanel裡,
就要改用控制台內的功能。

 如何透過cpanel操作修復

1. cpanel > mysql資料庫
mysql_repair01

2. Modify Databases 功能中

a. 選取相對應的資料庫名稱
    b. 點選修復
mysql_repair02

3. 系統就會將有問題的 db table 作自動修復,
也有可能需要多跑幾次,直到都看到ok最佳。

mysql_repair03

 

順利的話,這樣就可以恢復了,當然我們還是有遇過更特殊的狀況,
後面有機會會在介紹一下。

(本篇文章由unethost.com客服人員-Michael完成)

註冊網域請點我,以及網域取名,所要知道的事

我們提供虛擬主機試用,七天滿意保證,
功能完整使用不受限制,歡迎點我申請。