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
如何解決whm搬站出現的 mysql error message:Can’t find any matching row in the user table – unethost無限空間虛擬主機 技術分享部落格

如何解決whm搬站出現的 mysql error message:Can’t find any matching row in the user table

最近我們在使用whm自動搬機時,發現資料庫會有異常的狀況,
系統會提示出: Can’t find any matching row in the user table
經我們查詢後,發現原來跟 my.cnf的設定檔有關。

除錯及解決的方式:
1.今天這個錯誤訊息,如果用google去搜索,會發現很多文章的通俗解法,
都會提示是關於 mysql 底下要執行 Flush privileges; 去處理。

2.但是今天給大家一個概念,是只要卡到 whm/cpanel 控制台的話,
其優先權就不是在mysql身上,就要去追查關於whm的解法;

3.經我們翻了一些文章後發現,原來是 my.cnf 的一段語法導致的問題,
其語法是:skip-name-resolve,要將他從 my.cnf 拿掉。

4.這語法本來是為了加速mysql的讀取所設定,但有時舊的語法,
在新版的mysql上面,反而會是bugs。

5.移除該語法,並restart mysql後,就可以順利搬移了。

最後需注意的地方:
6. 另外之前搬過的帳號,還發現一個bugs,當前面搬失敗但已經從whm砍掉的帳號,
其db資料還保留在 /var/lib/mysql裡,導致搬站後,db name會被系統改掉,
所以還要手動進 linux shell去清除一次,這樣重新搬站後,才不會出現其他問題。

 

(本篇教學由unethost.com客服撰寫)

延伸閱讀:如何備份Cpanel後台安裝的套裝程式?

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