Did you know MariaDB is a drop-in replacement for MySQL? Is there a specific reason you want to use MySQL?
Anyway, you could run MySQL in a docker container.
#docker run --name=mysql -v /root/MySQL/datadir:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=Your-Password -p 127.0.0.1:3307:3306 "mysql:5.5.62"
Tools & Settings > Database Servers > Add Database Server
Host name or IP address - 127.0.0.1
Port - 3307
Username - root
Password - Your-Password