Installing MySQL client 5.7 in Ubuntu Focal 20.04


sudo apt install libaio1 libtinfo5

As you may have gleaned from the docker-compose configuration I showed last time, my team uses MysQL 5.7 community edition. It works well for us, and we don’t really have any urgent reason to upgrade to MySQL 8 so we decided to not rock the boat with an upgrade (at least without a proper migration plan).

I just installed Ubuntu Focal on a Clevo NH57AF1 and it does not have MySQL 5.7 binaries in its repos. Although the version 8 client can work with a MySQL 5.7 server, mysql schema dumps include extra changes that mess with our version tracking. We keep schema dumps checked in to make sure that each developer is able to reset their databases to the standard schema.

It’s not as difficult to install a lower version of MySQL, but it’s not a walk in the park either. You’ll first have to download the community client from but it will not show any of the older versions by default; you’ll need to click on the link that says “Looking for the latest GA version?

Then you’ll get three dropdowns; you should get the latest version, Ubuntu Linux as the operating system, and 18.04 (x86, 64-bit) as the OS version (or whatever architecture you’re running on).

There are a number of downloads to choose from; the one I need was the community client (but it’s not labeled as such; you’ll need to check the filename). After that it’s just a matter of installing some dependencies like libaio1 and libtinfo5 and then installing the .deb. that was just downloaded.


comments powered by Disqus