支援 ubuntu 22.04 的 mysql 5.7

支援 ubuntu 22.04 的 mysql 5.7

我正在嘗試在 Ubuntu 22.04 上安裝 mysql 5.7,但找不到安裝選項。

出現以下錯誤:

The following packages have unmet dependencies:
 mysql-community-server : Depends: mysql-client (= 5.7.39-1ubuntu18.04) but 8.0.30-0ubuntu0.22.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.

答案1

在新系統上安裝已棄用的軟體通常是一個壞主意。最好的選擇是將舊軟體隔離在容器中,例如使用 Docker(我相信這是使用容器的首要原因之一)。

這是目前的 Docker 映像MySQL 5.7

有可能破解你的出路透過自訂儲存庫和配置,但從長遠來看,它不太可能有好結果。

相關內容