Linux
We can only have one version of MySQL setup on the machine using the default installation procedure with apt-get.
If we try to install one version over another, it will replace the first version and will retain the second version.
Windows
In Windows, we can install different MySQL versions on the same server using the installer:
- Install the first instance.
Download MySQL Installer for windows and run it.
- Check and install requirements for MySQL products, Install MySQL, Configure MySQL Server, Set password for root account, (create another user), Create a service for MySQL Server, Apply configuration (= execution of all the above), Finish.
- Run MySQL Installer again, Press “Add” button and you will get all MySQL products list.
- Choose the MySQL version you need and move it to “Products to be installed” list.
- “Next” and move to other steps that similar to the regular installation: Check and install requirements, Download, Installation.
- After installation is finished, “Next” to configuration or if there is no “Next”, Select this version in the installation list and press “Reconfigure”.
- Configure MySQL Server: Set password for root account, (create another user), Create a service for MySQL Server, Apply configuration.
- Finish.
- Checks:
- The "C:\Program Files\MySQL" folder will have two “MySQL Server x.x” folders - one for each version.
- The " C:\ProgramData\MySQL " folder will have two data folders - one for each version.
- MySQL service should be created for each version.
- Enable Remote connection.
No comments:
Post a Comment