If that is the case, you can either have it parallel via docker as mentioned, or replace MariaDB with MySQL (the most reliable way to do this is to dump all the databases and reimport them).
For docker, you can pull the mysql image for the version (
Docker Hub) you want and then call docker run <image> with the relevant flags (you'll likely need to NAT 3306 to 3307, pass the -p flag). The Docker Extension will provide a way to do this for you