Migrate MySQL to another partition in same server
For linux (as root user)


Stop mysql service through systemctl
rsync or cp -a the whole of /var/lib/mysql to your preferred destination.
mv /var/lib/mysql /var/lib/mysql-old 
edit mysql configuration file and change datadir= under mysqld
Start mysql service through systemctl.