Using mysqldump
Overview
Quick references for mysqldump tasks.
Common tasks
Dump everything from a database
Includes both structure and data.
$ mysqldump --user[=username] --password[=password] database [tables]
Add -t or --no-create-info option to dump only data.
Add -d or --no-data option to dump only table structure.