mysql初始化(ubuntu为例)
安装
sudo apt install -y mysql-server
检查服务是否启动
systemctl status mysql.service
image.png
查看mysql初始密码
sudo vim /etc/mysql/debian.cnf
image.png进入mysql
sudo mysql -uroot -pssliqQacuMnOP7IG
image.png
修改数据库密码(mysql版本为8.0)
user mysql; update user set authentication_string='nextcloud@903' where user='root';
flush privileges;
quit;
进入数据库,数据库初始化完成
sudo mysql -uroot -pnextcloud@903
数据库授权
GRANT ALL PRIVILEGES ON *.* TO 'memoriae'@'%' WITH GRANT OPTION; FLUSH PRIVILEGES;
flush privileges;
网友评论