跑得快
跑得快PHP,敢问谁的PHP程序比我写的跑得快?

'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;

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

posted on 2020-12-19 20:01  跑得快  阅读(1967)  评论(0编辑  收藏  举报