Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I install different versions of MySQL on Windows 10?

I would like to install different MySQL versions on Windows. I have a MySQL 5.5 running, and I want to install a MySQL 5.7 to debug compatibility issues of a program I am working on. Both installations should stay side at a side, may have their own databases (it’s OK to start with an empty 5.7) and I am happy to run or stop the one or other from the Services control panel manually. The nowadays MySQL installer - community wants to upgrade my existing installation and, unlike explained in this article, does not offer another option to install the versions side to side. All I found was a rant confirming my problem, but no real solution. If it requires me to install it manually, I need detailed instructions. In my case, default setup (default port) is sufficient, because I don’t need to run both instances the same time.

like image 260
Matthias Ronge Avatar asked Aug 11 '17 07:08

Matthias Ronge


People also ask

Can I install two versions of MySQL on Windows?

This indicates that using the MySQL community installer, we can install a different version of MySQL but cannot install multiple instances of the same version. To run multiple instances, the second instance of MySQL must install as a windows service. The installation must be performed manually using a command prompt.

Can I have two MySQL versions?

It is possible to use a different MySQL server binary per instance, or use the same binary for multiple instances, or any combination of the two approaches. For example, you might run a server from MySQL 5.7 and one from MySQL 8.0, to see how different versions handle a given workload.


2 Answers

This is not so obvious but using the "MySQL installer", you need to run it, then click on "Cancel" and a new window will appear, letting you install new elements. You can then select the version(s) of MySQL that you want to add to your system.

You don't need it but if people want to run several instances at the same time, they need to choose a different port for each installation.

like image 133
Robin Avatar answered Sep 20 '22 07:09

Robin


Why not simply use a virtual machines to install your different MySQL version ?

Like that you will be sure to have no compatibilty issues between them and you can start/stop vms as you like.

Otherwise, I did find that : https://www.codementor.io/arpitbhayani/setup-multiple-mysql-servers-with-different-versions-docker-du107solq but can't confirm it's working.

like image 42
C.Dumange Avatar answered Sep 23 '22 07:09

C.Dumange