use mysql dump code example Example: dump mysql mysqldump -u username -p database_name > data-dump.sql