Restoring MySQL from data files

MySQL stores all its data in the following location

/var/lib/mysql/<database>

Simply make a copy of these files and you have a backup, when restoring make sure its owned by mysql.