how to export a table mysql code example
Example 1: mysql export database command line
mysqldump --databases --user=root --password your_db_name > export_into_db.sql
Example 2: export mysql table to file
mysqldump db_name tbl_name;
mysqldump --databases --user=root --password your_db_name > export_into_db.sql
mysqldump db_name tbl_name;