how to install different versions of percona-server on same linux server


I do have a use case for having 2 different version of mysql and will be using 5.5 and 5.6 , i do have the 55 now and when try to install its get’s conflict with packages and its trying to upgrade the 5.5 to 5.6.
But as said for my use case i need to have both of 5.5 and 5.6.

would installing with rpm to different location will help and work with out any conflicts when i start the instances. I am trying this on amazon linux.



Your options are:

  1. Spin up another EC2 instance.
  2. Use Docker or OpenVZ on the ec2 instance.
  3. Setup 2 chroots/jails with the relevant percona servers.
  4. Install both from tar.gz packages (not rpm) into /opt, symlink required files and hack up the startup scripts and config names.

I’ve done all of the above before. :wink: