MariaDB Data Directory on separate drive

Hello,
Does anyone know how to install/Change MariaDB database location to a separate drive on the same server?

I have used this method successfully on a few occasions.