下载:https://dev.mysql.com/downloads/
version:8.0.30
su
dpkg -i mysql-connector-java_8.0.30-1ubuntu22.04_all.deb
apt-get update
apt-get install mysql-server
mysql 直连且安装过程无设置密码操作
/etc/mysql/debian.cnf 临时账号存储文件
mysql -u debian-sys-maint -p 密码文件里有
ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';
FLUSH PRIVILEGES
exit;
systemctl restart mysql.service
标签:8.0,get,mysql,apt,Ubuntu,安装,debian From: https://www.cnblogs.com/ssix/p/16776447.html