mysqldump -u username -p databasename > database_backup.sql
#Take backup of database
mysqldump database > backup-file.sql;
#Restore database
mysql database < backup-file.sql;
mysqldump database_name > database_name.sql
mysqldump database_name > backup_name.sql