How to Change MySQL/MariaDB Data Directory on Ubuntu
By default, the MySQL/MariaDB SQL database servers put their data on the root filesystem. This is not what you want in your production servers most of time. You may want to put the database server data to a different hard…