mysql历史版本
https://downloads.mysql.com/archives/community/
标题是5.7.35,下面的命令是5.7.31,注意一下
wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-server_5.7.31-1ubuntu18.04_amd64.deb-bundle.tar
tar -xvf mysql-server_5.7.31-1ubuntu18.04_amd64.deb-bundle.tar
rm -f mysql-testsuite_5.7.31-1ubuntu18.04_amd64.deb
rm -f mysql-community-test_5.7.31-1ubuntu18.04_amd64.deb
dpkg -i mysql-*.deb
删除带test的内容
如果报错,可以按照提示进行处理
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mysql-community-client : Depends: libaio1 (>= 0.3.93) but it is not going to be installed
mysql-community-server : Depends: perl but it is not going to be installed
Depends: libaio1 (>= 0.3.93) but it is not going to be installed
Depends: libmecab2 but it is not going to be installed
mysql-community-test : Depends: mysql-community-server (= 5.7.31-1ubuntu18.04) but 5.7.35-1ubuntu18.04 is to be installed
Depends: mysql-community-client (= 5.7.31-1ubuntu18.04) but 5.7.35-1ubuntu18.04 is to be installed
Depends: python
Depends: libjson-perl but it is not going to be installed
Depends: libaio1 (>= 0.3.93) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
直接执行apt --fix-broken install
即可
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode