How to install multiple versions (5.5.xx and 5.7) of MySQL in Ubuntu 16.04?

I want to use MySQL multi version(5.5.xx and 5.7) in my desktop.

I installed mysql 5.7 using apt-get

sudo apt-get mysql-server mysql-client

How to install mysql 5.5 and run multi mysql version?

Answer

Install the 2nd one either from a snap install or from source.

1 of the 2 installs needs to be told to Listen to another port than the default 3306 (stop mysql, add in my.cnf the line port = 3333 and start mysql).

Commands send to that changed version will need to point to port 3333.

Attribution
Source : Link , Question Author : Dabeen Heo , Answer Author : Rinzwind

Leave a Comment