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
1 2 3 |
cd ~/ wegt http://launchpadlibrarian.net/371711898/libtinfo5_6.1-1ubuntu1.18.04_amd64.deb dog -i libtinfo5_6.1-1ubuntu1.18.04_amd64.deb |
Download and install MySQL 5.7
1 2 3 4 5 6 |
mkdir ~/mysql57 cd ~/mysql57 wget https://dn.serverok.in/MySQL-5.7/mysql-server_5.7.38-1ubuntu18.04_amd64.deb-bundle.tar tar xvf mysql-server_5.7.38-1ubuntu18.04_amd64.deb-bundle.tar dpkg -i *.deb apt install -f |
To start MySQL on boot, run
1 |
systemctl enable mysql |
To start MySQL, run
1 |
systemctl start mysql |
Back to MySQL Installation