mysql use dump to backup database code example Example: database dump mysql command mysqldump -u username -p dbname > filename.sql