This is how I set up a dedicated Debian subdomain (VM), Installed MySQL 14 and connected to it from a WordPress installation on a different VM
Read the full article here: https://fearby.com/article/setup-a-dedicated-debian-subdomain-vm-install-mysql-14-and-connect-to-it-from-a-wordpress-on-a-different-vm