how to take backup of mysql code example
Example: mysql backup query
#Take backup of database
mysqldump database > backup-file.sql;
#Restore database
mysql database < backup-file.sql;
#Take backup of database
mysqldump database > backup-file.sql;
#Restore database
mysql database < backup-file.sql;