mysqldump --opt -uUSERNAME -p DATABASE-NAME > /path/to/backup.sql
mysql -uUSERNAME -p DATABASE-NAME < /path/to/restore.sql