How to move maria db location to the additional partition?


I have a webserver with SSD added as a different partition. main partition is 50 GB SSD partition is 250 GB I mounted the SSD partition as www folder. I have only 50 GB disk available and my SQL files exceeds that. How can I configure the instance to use www folder or a sub folder as the location to store Wordpress SQL files?