1.下载并解压mysql(版本号为:8.0.32)
sudo apt install -y mysql-server mysql-client libmysqlclient-dev
2. 查看密码
sudo cat /etc/mysql/debian.cnf
3.以上述账号和密码登录mysql
mysql -u debian-sys-maint -p2l938pIxxWJScIhB
4.设置root账户密码(密码以123456为例)
ALTER USER 'root'@'