Home » Categories » MySQL » Command Line

Limiting the number of records from mysqldump?

mysqldump -u root -p --opt --where="1 ORDER BY id DESC LIMIT 0, 10000" database the_table > the_table_10k.sql

 

Reference:

https://stackoverflow.com/questions/135835/limiting-the-number-of-records-from-mysqldump

Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
 
Attachments Attachments
There are no attachments for this article.
Comments Comments
There are no comments for this article. Be the first to post a comment.
Related Articles RSS Feed