LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Unable to install two different mysql versions on CentOS7 (https://www.linuxquestions.org/questions/linux-server-73/unable-to-install-two-different-mysql-versions-on-centos7-4175659645/)

dushyantg 08-23-2019 12:36 AM

Unable to install two different mysql versions on CentOS7
 
Hi,

I am trying to install mysql 5.6 and mysql 8 on CentOS7. as generally I have practice of installing older version first and than the newer version needs to be installed but while doing so it automatically upgrade the old version and mysql 5.6 becomes mysql 8.

I have tried revers way installed mysql 8 first and tried installing 5.6 than it starts giving conflict error.

I have tried installing the same via rpm packages too but happening the same.

Can any one help me out with this. as i want to run two different mysql on my server, please let me know else let me know what is the proper way to do so if I am doing any thing wrong.

Thanks.

bathory 08-23-2019 05:18 AM

Quote:

Originally Posted by dushyantg (Post 6028474)
Hi,

I am trying to install mysql 5.6 and mysql 8 on CentOS7. as generally I have practice of installing older version first and than the newer version needs to be installed but while doing so it automatically upgrade the old version and mysql 5.6 becomes mysql 8.

I have tried revers way installed mysql 8 first and tried installing 5.6 than it starts giving conflict error.

I have tried installing the same via rpm packages too but happening the same.

Can any one help me out with this. as i want to run two different mysql on my server, please let me know else let me know what is the proper way to do so if I am doing any thing wrong.

Thanks.

You could do the following if you really need 2 different mysql versions on the same box:

Download the precompiled binaries of the versions you want from here.
Extract them in two different directories and follow the instructions in the tarballs in order to run the servers.

Mind that you cannot share the same databases because the tables structure is not the same across different versions and of course you need to use different ports/sockets if you want to run both servers simultaneously.


Regards

dushyantg 08-23-2019 05:25 AM

Thank bathory

I have already checked the url which you have shared but its not having any binary file the tar which is available on the shared url is also having bundle of rpm. there is no file of installer with .bin extension there.

What could be the solution in that case.

Is there any other possible way?

bathory 08-23-2019 06:00 AM

Quote:

Originally Posted by dushyantg (Post 6028543)
Thank bathory

I have already checked the url which you have shared but its not having any binary file the tar which is available on the shared url is also having bundle of rpm. there is no file of installer with .bin extension there.

What could be the solution in that case.

Is there any other possible way?

The archives on that link contain precompiled binaries, meaning that you extract them in some place and mysql is ready to run.

For example click the "Download" button next to the version you want and then click "No thanks, just start my download."
Extract the downloaded archive and follow the instructions. (You maybe don't have to do all the steps, like creating mysql user/group if they already exist)

When finished you can use either one of the following ways to start the server:
Code:

/path/to/mysql-x.y.z/support-files/mysql.server start
/path/to/mysql-x.y.z/bin/mysqld_safe --user=mysql &


dc.901 08-23-2019 06:06 AM

One of the many options is you can use docker... You can download different versions of mysql from docker hub.


All times are GMT -5. The time now is 06:20 AM.