如何在Windows 10上安装不同版本的MySQL?

时间:2022-07-18 22:48:14

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.

我想在Windows上安装不同的MySQL版本。我运行了MySQL 5.5,我想安装一个MySQL 5.7来调试我正在处理的程序的兼容性问题。两个安装都应该保持在一侧,可以有自己的数据库(从空5.7开始就可以),我很乐意手动运行或停止服务控制面板中的一个。现在MySQL安装程序 - 社区想要升级我现有的安装,并且与本文中解释的不同,它没有提供另一个选项来安装版本并排。我发现的只是一个确认我的问题的咆哮,但没有真正的解决方案。如果需要我手动安装,我需要详细的说明。在我的情况下,默认设置(默认端口)就足够了,因为我不需要同时运行这两个实例。

1 个解决方案

#1


1  

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

为什么不简单地使用虚拟机来安装不同的MySQL版本?

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

就像你一样,你肯定会在它们之间没有兼容性问题,你可以随心所欲地启动/停止vms。

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.

否则,我确实发现:https://www.codementor.io/arpitbhayani/setup-multiple-mysql-servers-with-different-versions-docker-du107solq但无法确认它是否正常工作。

#1


1  

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

为什么不简单地使用虚拟机来安装不同的MySQL版本?

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

就像你一样,你肯定会在它们之间没有兼容性问题,你可以随心所欲地启动/停止vms。

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.

否则,我确实发现:https://www.codementor.io/arpitbhayani/setup-multiple-mysql-servers-with-different-versions-docker-du107solq但无法确认它是否正常工作。