
安装aptwget http://security.ubuntu.com/ubuntu/pool/main/a/apt/apt_1.4_amd64.deb二.设置rootsudo passwd root输入原密码,在输入root新密码两次三.更新软件库sudo apt-get updatesudo apt-get install安装SSH(Secure Shell)服务以提供远程管理服务sudo apt-get install ssh四.安装数据库https://downloads.mysql.com/archives/community/#解压下载的bundle-deb,默认解压到当前文件夹mv mysql-server_8.0.19-1ubuntu19.10_amd64.deb-bundle.tar /data/mysqltar -xvf mysql-server_8.0.19-1ubuntu19.10_amd64.deb-bundle .tar#批量安装mysql debsudodpkg -i*.deb#因为有些依赖没有,所以第一次安装会报错,安装依赖sudo apt-get-f -y install#再次安装sudodpkg -i*.deb#查看mysql状态, mysql.service前面的点显示绿色就代表正常service mysql status#进入mysql,输入密码即可mysql-uroot -p/