with mysql the command you want is mysqldump read about it to get all the parameters to dump it how you want. Info is in the documentation @ www.mysql.com
once its dumped its readable as txt. Also it will tell you how to restore it, pretty sure its just mysql<thefilename
hope that was of help, you maybe able to search for mysqldump on here and figure it out.