背景

因为debian官方的源默认是mariaDB(apt install mysql) , 但是我们需要MySQL ,又想方便的安装
使用bandel包安装等效于apt安装 除了更新

环境

debian 9.5
mysql 8.0.11

下载bandel包

解压tar -zxf

安装

按照下面的顺序安装

libmysqlclient21_8.0.11-1debian9_amd64.deb

libmysqlclient-dev_8.0.11-1debian9_amd64.deb

mysql-common_8.0.11-1debian9_amd64.deb

mysql-community-client-core_8.0.11-1debian9_amd64.deb

mysql-community-client_8.0.11-1debian9_amd64.deb

mysql-client_8.0.11-1debian9_amd64.deb

mysql-community-server-core_8.0.11-1debian9_amd64.deb

mysql-community-server_8.0.11-1debian9_amd64.deb

mysql-server_8.0.11-1debian9_amd64.deb

如果安装到了某步缺少了依赖可以使用apt install -f修复依赖

然后就没了….

tips

MySQL似乎正在慢慢没落