mysqldump -uroot -p db_name table_name --where='id<1000000'
ou você pode usar
SELECT * INTO OUTFILE 'data_path.sql' from table where id<100000
mysqldump -uroot -p db_name table_name --where='id<1000000'
SELECT * INTO OUTFILE 'data_path.sql' from table where id<100000