fix(mysql): update MySQL installation logic for Debian 13+ to use 8.4 LTS
This commit is contained in:
@@ -6283,9 +6283,11 @@ function setup_mysql() {
|
|||||||
return 100
|
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
|
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
|
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"
|
msg_error "Failed to import MySQL GPG key"
|
||||||
@@ -6295,7 +6297,7 @@ function setup_mysql() {
|
|||||||
cat >/etc/apt/sources.list.d/mysql.sources <<EOF
|
cat >/etc/apt/sources.list.d/mysql.sources <<EOF
|
||||||
Types: deb
|
Types: deb
|
||||||
URIs: https://repo.mysql.com/apt/debian/
|
URIs: https://repo.mysql.com/apt/debian/
|
||||||
Suites: bookworm
|
Suites: ${MYSQL_SUITE}
|
||||||
Components: mysql-8.4-lts
|
Components: mysql-8.4-lts
|
||||||
Architectures: $(dpkg --print-architecture)
|
Architectures: $(dpkg --print-architecture)
|
||||||
Signed-By: /etc/apt/keyrings/mysql.gpg
|
Signed-By: /etc/apt/keyrings/mysql.gpg
|
||||||
|
|||||||
Reference in New Issue
Block a user