take dump of database in mysql code example Example: dump mysql mysqldump -u username -p database_name > data-dump.sql