#Mysql: Backup and Restore
Mysql Backup and restore through command line.
mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql
mysqldump -u root -p --all-databases > alldb.sql
##Restore
mysql -u root -p[root_password] [database_name] < dumpfilename.sql
mysql -u root -p < alldb.sql