'datadirectory' => '/var/www/html/xdata',
'dbtype' => 'mysql',
'version' => '20.0.0.9',
'overwrite.cli.url' => 'http://www.xiaofamao.com',
'dbname' => 'nextcloud',
'dbhost' => 'localhost:3306',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'oc_yuncan',
'dbpassword' => 'YCAddJvUL00000mXTq5HXjeNuf/+7f',
'installed' => true,

创建 nextcloud 所需的数据库和账户
打开数据库管理命令行,默认root没密码,回车进入

sudo mysql -u root -p

创建 nextcloud 数据库,命令包含后面的分号

CREATE DATABASE nextcloud;

//创建用户nextclouduser,password可自定义

create user nextclouduser@localhost identified by 'nextpassword';

//用以下命令授予必要的权限为数据库和用户授权

grant all privileges on nextcloud.* to nextclouduser@localhost identified by 'nextpassword';

//用命令更新数据库配置:

flush privileges;

注意操作时,指令后需加‘;’使执行


评论关闭
IT干货网

微信公众号号:IT虾米 (左侧二维码扫一扫)欢迎添加!

405报错是什么原因_状态码405是什么错误