fix(mysql): update MySQL installation logic for Debian 13+ to use 8.4 LTS

This commit is contained in:
MickLesk
2026-05-18 14:39:13 +02:00
parent 24dc458261
commit 8d9720a53e

View File

@@ -6283,9 +6283,11 @@ function setup_mysql() {
return 100
}
# Debian 13+ Fix: MySQL 8.0 incompatible with libaio1t64, use 8.4 LTS
# Debian 13+ Fix: MySQL 8.0 incompatible with libaio1t64, force 8.4 LTS
# Trixie has native MySQL 8.4 LTS repo support; forky/sid fall back to trixie
if [[ "$DISTRO_ID" == "debian" && "$DISTRO_CODENAME" =~ ^(trixie|forky|sid)$ ]]; then
msg_info "Debian ${DISTRO_CODENAME} detected → using MySQL 8.4 LTS (libaio1t64 compatible)"
local MYSQL_SUITE="trixie"
msg_info "Debian ${DISTRO_CODENAME} detected → installing MySQL 8.4 LTS"
if ! download_gpg_key "https://repo.mysql.com/RPM-GPG-KEY-mysql-2023" "/etc/apt/keyrings/mysql.gpg" "dearmor"; then
msg_error "Failed to import MySQL GPG key"
@@ -6295,7 +6297,7 @@ function setup_mysql() {
cat >/etc/apt/sources.list.d/mysql.sources <<EOF
Types: deb
URIs: https://repo.mysql.com/apt/debian/
Suites: bookworm
Suites: ${MYSQL_SUITE}
Components: mysql-8.4-lts
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/mysql.gpg