Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

SergioGregorutti's avatar

Upgrade MySQL from 8.0.20 to latest version (8.0.25)

Hi all,

I created a Digital Ocean server using Forge and I have MySQL 8.0.20. I need to upgrade this to the latest version but I can't find a clear tutorial to do this. I don't have the proper knowledge to do it.

Can someone help me with this?

Thanks in advance.

0 likes
3 replies
SergioGregorutti's avatar

Thanks for your reply.

Yes, I know that I have to do it manually, but I don't know how to do it. I can't find a tutorial to update the minor version.

fideloper's avatar

Updating software in that fashion on Ubuntu is the same as installing:

sudo apt-get update
sudo apt-get install mysql-server

However, often a distribution of Linux (for example, Ubuntu 20.04) only has one "official" version of software included/built for that version of the OS.

So, minor version updates may not be as simple as running sudo apt-get install mysql server.

However, if Forge uses a secondary repository (perhaps a ppa from Launchpad) that regularly builds newer versions of the software (mysql in this case), then running apt-get install mysql-server may work to do the minor upgrade.

To test that out, you can safely run sudo apt-get update && sudo apt-get install mysql-server (without the -y flag!) and it will tell you if it's about to update the software or not.

1 like

Please or to participate in this conversation.