How to Install MySQL 5.7 on Ubuntu 22.04

MySQL 5.7 is not supported on Ubuntu 22.04, but you can download MySQL 5.7 for Ubuntu 18.04 and install it on Ubuntu 20.04 or Ubuntu 22.04

EDIT: MySQL download page no longer provide ubuntu/debian download for MySQL 5.7. I have a copy of the file available for download from

md5sum of the file is c85a25478135293103c1117db0d47fcf

You need to run these commands as user root. If you are logged in with any other user, run “sudo su” command to become user root.

First install libtinfo5, this is available for download from

Download and install MySQL 5.7

To start MySQL on boot, run

To start MySQL, run

Back to MySQL Installation

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *