Owncloud數據庫連接錯誤.

在使用owncloud時,有時會出現數據庫連接錯誤,這一般是由於mysql用戶權限錯誤引起的,我們需要把owncloud自己所創建用戶以及表全刪乾淨,從頭開始做,以下爲解決方案。


Solution:


drop database <dbname>;


select * from mysql.user;


"drop all the OC_* users"
DROP USER 'oc_<username>'@'localhost';
drop user "oc_<username>";


delete the /var/www/owncloud/config/config.php


#when there is no more oc_user start again from the beginning.


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章