Install a package/service under a different name

Solution 1:

There are a couple of things you will need to do:

  1. Stop. Go no further.
  2. Decide whether you would rather work with a virtual machine or a Docker container

If you try to install a second version of MySQL on a system that already has a working version — and one that you've said you don't want to lose — then your safest option is to have the second version operate independent of the first.

Reasons:

  • both versions of MySQL will want to use the same directories
  • both versions of MySQL will want to use the same ports
  • both versions of MySQL will want to use the same service names

Each of these items can be overcome, but it's not for the faint of heart.

So, with this in mind, if you want to run a Debian-specific installation of MySQL 5.6.10, you will want to decide between a VM or a Docker container. Looking through the available pre-built Docker containers, though, there is no 5.6.10 available to use, meaning you'd have to build one yourself. Depending on your familiarity with Docker and its myriad of tools, you may just want to stick with a VM.