Posted under » MySQL » Ubuntu » LAMP Security on 17 Apr 2025
For Ubuntu 24.04 LTS, the MySQL in LAMP is 8.0.41 but suppose you want to upgrade to 8.4 because you want to install Moodle? Well you can.
First you download the deb files It may look like 'mysql-apt-config_0.8.34-1_all.deb'
While being sudo you run
$ dpkg -i mysql-apt-config*
During installation, you’ll be prompted with a configuration screen where you can choose which version of MySQL you prefer, and an option to install repositories for other MySQL-related tools. You know what to do and press OK. The package will finish adding the repository. Then you can refresh your apt package cache to make the new software packages available
$ apt update
Since you already have MySQL (v 8.0.4) installed, what you need to do is to upgrade. You will be prompted '3 packages can be upgraded. Run 'apt list --upgradable' to see them.' Check what they are by
$ apt list --upgradable
Suppose you want to be safe and just upgrade the 3 MySQL items
$ apt --only-upgrade install libmysqlclient-dev mysql-common mysql-server
Once it has been upgraded, check MySQL status.
If you choose to make a new config and something isn't right, then change the file at /etc/mysql/mysql.conf.d/mysqld.cnf