Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

mysqldump Only Some Records Because Database is So Large

Posted on 2007-11-27
2
1,037 Views
Last Modified: 2010-05-18
I am setting up a development system and need some critical tables, many of them which only contain 100 or less rows. Some of the tables contain GB of info that I don't wan to copy over. I have done mysqldump to get just the schema, is there any way to limit the table data dump to let's say 1000 rows for each table? Or maybe just grab the info from the tables that contain less than 1000 rows?
0
Comment
Question by:dignified
2 Comments
 
LVL 20

Accepted Solution

by:
Muhammad Wasif earned 125 total points
ID: 20358462
If you know the table names which contain less rows, mention them in when taking dump.

If you have phpmyadmin then you can dump your required rows. But you have to  perform this operation on each table separately.
0
 

Author Comment

by:dignified
ID: 20363828
Yeah I was afraid of this. Since the databases are on the same system it isn't too bad. Just have to write a php script or something to do it.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question