So I can export only a table like this:
mysqldump -u root -p db_name table_name > table_name.sql
Is there any way to export only a porti
mysqldump -uroot -p db_name table_name --where='id<1000000'
or you can use
SELECT * INTO OUTFILE 'data_path.sql' from table where id<100000