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

https://dev.mysql.com/downloads/mysql/5.7.html

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

https://dn.serverok.in/MySQL-5.7/mysql-server_5.7.38-1ubuntu18.04_amd64.deb-bundle.tar

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 https://launchpad.net/ubuntu/bionic/amd64/libtinfo5/6.1-1ubuntu1.18.04

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 *