How to migrate physical MySQL server to VMware virtual server with all db and user privileges
You test everything local with an installation of vmware.
Install the vm including the mysql server. then stop the server in the vm and the original.
And simply copy the data files.
You need all files including ini ...
change the ini/cnf file to the new location and start the vm mysql again or the local first.
Check the error log of the new server if something is a wrong.