how to create export file mysql data code example
Example 1: how to export db from mysql
mysqldump -u username -p dbname > dbexport.sql
Example 2: how to export table data from mysql table in sql format
SELECT * FROM tbl_order INTO OUTFILE 'file save path/filename'