This example will show you how to move MySQL datadir to another dir (in my case to “/mysqldata”) step-by-step (OS: Linux Mint):
1. create new dir (/mysqldata) and set permissions to it
sudo mkdir /mysqldata sudo chown mysql:mysql /mysqldata/
My main background for a recent years is MySQL DEV/DBA engineer but I’m also participating in wider range of tasks which could be likely called as DataOps/DevOps tasks. You can see my online CV here: http://catyellow.net