现在的位置: 首页 > 综合 > 正文

Owncloud数据库连接错误.

2013年01月11日 ⁄ 综合 ⁄ 共 318字 ⁄ 字号 评论关闭

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

抱歉!评论已关闭.