3

I want to take a dump of a database, but the condition is to have only 100 records from each table in the DB?

bvishal4u
  • 316
  • 1
  • 3
  • 7

1 Answers1

9

I found a small hack for doing that in the MySQL manual (comment):

mysqldump -u [username] -p [dbname] {--opt} --where="true limit 100" > dump.sql
Lekensteyn
  • 6,241
  • 6
  • 39
  • 55