How to restore MySQL database from Files
install the new MySQL
create the db you want, let's say DB_NAME_RESTORE
go to /var/lib/DB_NAME_RESTORE and copy the data files there
chmod on the files if you have to