export table structure mysql code example
Example 1: get only structure database mysql
mysqldump -u root -p --no-data dbname > schema.sql
Example 2: export database mysql
mysqldump -u [username] -p [database-you-want-to-dump] > [path-to-place-data-dump]
Example 3: how to export table data from mysql table in sql format
SELECT * FROM tbl_order INTO OUTFILE 'file save path/filename'
Example 4: export mysql table to file
mysqldump db_name tbl_name;