How to install MySQL 8.4 on Ubuntu 24.04 Using the MySQL APT Repository

##

How to install MySQL 8.4 on Ubuntu 24.04 Using the MySQL APT Repository

1、Download APT Repository

link: https://dev.mysql.com/downloads/repo/apt/

filename: mysql-apt-config_0.8.30-1_all.deb

upload this file to Ubuntu 24.04

2、Install MySQL 8.4

root@demo:~# dpkg -i mysql-apt-config_0.8.30-1_all.deb (Reading database ... 83352 files and directories currently installed.) Preparing to unpack mysql-apt-config_0.8.30-1_all.deb ... Unpacking mysql-apt-config (0.8.30-1) over (0.8.30-1) ... Setting up mysql-apt-config (0.8.30-1) ... root@demo:~# apt-get update Hit:1 https://mirrors.aliyun.com/ubuntu noble InRelease Hit:2 https://mirrors.aliyun.com/ubuntu noble-updates InRelease Hit:3 http://security.ubuntu.com/ubuntu noble-security InRelease Hit:4 https://mirrors.aliyun.com/ubuntu noble-backports InRelease Get:5 http://repo.mysql.com/apt/ubuntu noble InRelease [22.6 kB] Get:6 http://repo.mysql.com/apt/ubuntu noble/mysql-8.4-lts amd64 Packages [16.8 kB] Get:7 http://repo.mysql.com/apt/ubuntu noble/mysql-tools amd64 Packages [4,125 B] Fetched 43.6 kB in 7s (5,999 B/s) Reading package lists... Done root@demo:~# apt-get install mysql-server