how to take some tables dump from database code example
Example 1: mysql dump with table query
mysqldump db_name table_name --where="id > 1"
Example 2: mysqldump 1 table only
mysqldump db_name table_name > table_name.sql
mysqldump db_name table_name --where="id > 1"
mysqldump db_name table_name > table_name.sql