to find out where the mysql data located,
in order to backup the data,
#tar fvcz mysql.bak.tar.gz /var/lib/mysql
and go to the new server, on your directory or desired one,
#tar fvxz mysql.bak.tar.gz
doing this, all the mysql accounts will be transffered as well.
Check if you can connect to mysql with your credential you used to use on the old server.