how to export mysql table data into local csv file code example Example: export mysql table to file mysqldump db_name tbl_name;