由于前面遇到的坑决定在Ubuntu20.4安装mysql与本地一致的mysql版本
步骤如下~~
1.下载安装包
wget https://downloads.mysql.com/archives/get/p/23/file/mysql-server_8.0.27-1ubuntu20.04_amd64.deb-bundle.tar
2.解压
tar xvf mysql-server_8.0.27-1ubuntu20.04_amd64.deb-bundle.tar
3.安装依赖
sudo apt install -y libaio1 libmecab2 man-db libc-bin
4.安装mysql
dpkg -i mysql-community-client-plugins_8.0.27-1ubuntu20.04_amd64.deb
dpkg -i mysql-community-client-core_8.0.27-1ubuntu20.04_amd64.deb
dpkg -i mysql-common_8.0.27-1ubuntu20.04_amd64.deb
dpkg -i mysql-community-client_8.0.27-1ubuntu20.04_amd64.deb
dpkg -i mysql-client_8.0.27-1ubuntu20.04_amd64.deb
dpkg -i mysql-community-server-core_8.0.27-1ubuntu20.04_amd64.deb
dpkg -i mysql-community-server_8.0.27-1ubuntu20.04_amd64.deb
5.安装成功后,查看版本信息$ mysql -V
标签:8.0,27,1ubuntu20.04,amd64,debdpkg,版本,mysql,Ubuntu20.4 From: https://www.cnblogs.com/Raywang80s/p/17060171.html