Mysql – thesql dump of table limit 100

MySQL

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

Best Answer

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