在使用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.