可以在 Debian 10/buster 上安装 MySQL5.7 吗?

可以在 Debian 10/buster 上安装 MySQL5.7 吗?

我尝试过两次,但总是失败。根据这个小家伙debian 从 buster 开始停止打包 mysql-client。我尝试通过安装 MariaDB 来解决这个问题,但我很难找到有用的教程。然后我尝试使用本教程但是在安装客户端时出现以下错误:

miked@debian:~$ sudo apt install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mysql-server : Depends: mysql-community-server (= 5.7.34-1debian10) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

那么,是否可以在 Debian10 buster 上安装 mysql5.7 还是应该安装 debian9 服务器?

答案1

您可以在 Debian 系统上下载并安装该软件包,这将把 PPA 文件添加到您的系统中。在安装 MySQL apt config 包的过程中,它会提示您选择要安装的 MySQL 版本。选择 MySQL 5.7 选项安装在您的系统上。

请参阅以下链接了解安装步骤。

https://tecadmin.net/install-mysql-on-debian-10-buster/#:~:text=您可以通过以下命令下载并安装以启用 PPA。&text=在安装 MySQL 的过程中,在您的系统上安装 MySQL。

相关内容