更新软件库: sudo apt update 安装: sudo apt install mysql-server 启动服务: sudo systemctl start mysql sudo systemctl enable mysql 安全初始化配置: sudo mysql_secure_installation # 是否安装密码校验组件 Press y|Y for Yes, any other key for No: y # 密码强度设置 Please enter 0 = LOW, 1 = MEDIUM and …