I am wanting to install MySQL 5.7 on Ubuntu 20.10 but have not been able to find any tutorials etc on how to do this.
So far I keep trying different approaches based on 20.04 but there doesn't seem to be a simple solution if you are running Groovy.
Is it possible?
Many thanks for any help.
If the goal is to use a previous version of MySQL on a current release of Ubuntu, the two options that I have found to be most reliable are:
The nice thing about Virtual Machines is that they operate just like a regular Ubuntu installation and all of the skills you already know can transfer over just fine. The downside is that they generally require more resources to be dedicated to them.
The nice thing about Docker containers is that you can very quickly set up a specific version of software without first going through the process of obtaining an older Ubuntu ISO and setting everything up.
Here is how you can get MySQL 5.7 running with either option:
Installing MySQL 5.7 on a Virtual Machine
Installing MySQL 5.7 via Docker
First, if you don't already have Docker installed on your system, let's get Docker:
Now that Docker is installed, let's get MySQL 5.7 ...
Note: the
-p
sets the port you wish to communicate on. 3306 is the default for MySQL.root
password for the MySQL server:You'll see a line that looks like:
Note: The above command will SSH into the container and run the
mysql
command. You'll be asked for the generated password.Be sure to set a proper password for your installation.
This looks like a lot of steps but, once you see the flexibility of using VMs or Docker containers to work with very specific versions of software, you'll wonder how you ever did without.
Hope this gives you what you need.