debian安装MySQL8

背景

因为 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 似乎正在慢慢没落

本文链接:https://blog.inmind.ltd/index.php/archives/16/
This blog is under a CC BY-NC-SA 3.0 Unported License