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