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

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/feed-rss2.php on line 8
whm搬站出錯 – unethost無限空間虛擬主機 技術分享部落格 https://blog.unethost.com unethost 專注於提供優質的虛擬主機服務及相關問題解答 Tue, 17 Jan 2017 08:29:56 +0000 zh-TW hourly 1 https://wordpress.org/?v=6.0.8 如何解決whm搬站出現的 mysql error message:Can’t find any matching row in the user table https://blog.unethost.com/how_to_fix_mysql_issue_matching-row_when_transfer_web/ Tue, 17 Jan 2017 08:29:56 +0000 http://blog.unethost.com/?p=4247 閱讀全文 如何解決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後台安裝的套裝程式?

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

]]>