i know that we can switch between different version of php in ubuntu with the commands
sudo a2dismod php7.1
sudo a2enmod php5.6
but the mysql requirement for the old and new magento setups are also different , i tried to look for switch between different mysql versions but could not find the anywhere how this can be achieved . i want to setup different magento project on my linux machine , If anyone using the same on linux please let me know.