“Favorites of Success” logo How to dump certain rows from mySQL database
© FAVOR.com.ua
 
How to dump certain rows from mySQL database
  

Here we go:

mysqldump -h hostname -u username -p*** db_name table_name --where="userid<0" > dump.sql

https://favor.com.ua/en/blogs/36714.html