Ubuntu22.04安装指定版本的Mysql的方法(以V5.7.x为例)
1.更新系统
确保你的系统是最新的:
sudo apt update
sudo apt upgrade
2.下载mysql5.7.36的Ubuntu18.04的包(amd64)tar
wget https://downloads.mysql.com/archives/get/p/23/file/mysql-server_5.7.36-1ubuntu18.04_amd64.deb-bundle.tar
解压tar包:
tar xvf ./mysql-server_5.7.36-1ubuntu18.04_amd64.deb-bundle.tar
安装lib依赖包
sudo apt-get install ./libmysql*