On my Ubuntu 18.04, I need to run both versions of MySQL - 5.7 and 8.0, simultaneously. I use a single machine for both personal and professional projects, and at work, all apps use 5.7, while all my stuff uses 8.0.
What is my simplest option? As far as I googled, it seems that I might install one version via the package manager and then build another one from source and configure it so it does not conflict with the first one.
Research got me to
4.3.4 mysqld_multi
— Manage Multiple MySQL Servers and as far as I like the idea of how it works (creating the multi_admin
user in both databases responsible for launching servers), I am not sure how to approach with the second instance installation. I would love to avoid building the whole thing from source, as I have very little experience in doing so.
The ideal scenario is to just have them both running and not to think about too much, so I can focus on coding.
Is there any way to overwrite the package default configuration while installing it via apt
or building from os-dedicated binary?
How do I best approach the problem, given my little-to-no experience in building from source?