Solved

mysqldump Only Some Records Because Database is So Large

Posted on 2007-11-27
2
1,040 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
[X]
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
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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

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…
In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

632 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